diff --git a/.woodpecker/cargo_check.yaml b/.woodpecker/cargo_check.yaml new file mode 100644 index 0000000..557ee6c --- /dev/null +++ b/.woodpecker/cargo_check.yaml @@ -0,0 +1,9 @@ +when: + - event: pull_request + +steps: + - name: "Run cargo check" + image: docker.nix-community.org/nixpkgs/nix-flakes + commands: + - nix shell github:nixos/nixpkgs/nixos-unstable#cargo github:nixos/nixpkgs/nixos-unstable#gcc + - cargo check --workspace --all-targets diff --git a/.woodpecker/cargo_clippy.yaml b/.woodpecker/cargo_clippy.yaml new file mode 100644 index 0000000..dd4c38e --- /dev/null +++ b/.woodpecker/cargo_clippy.yaml @@ -0,0 +1,9 @@ +when: + - event: pull_request + +steps: + - name: "Run cargo clippy" + image: docker.nix-community.org/nixpkgs/nix-flakes + commands: + - nix shell github:nixos/nixpkgs/nixos-unstable#clippy github:nixos/nixpkgs/nixos-unstable#cargo github:nixos/nixpkgs/nixos-unstable#gcc + - cargo clippy diff --git a/.woodpecker/cargo_test.yaml b/.woodpecker/cargo_test.yaml new file mode 100644 index 0000000..6c5d3fb --- /dev/null +++ b/.woodpecker/cargo_test.yaml @@ -0,0 +1,9 @@ +when: + - event: pull_request + +steps: + - name: "Run cargo test" + image: docker.nix-community.org/nixpkgs/nix-flakes + commands: + - nix shell github:nixos/nixpkgs/nixos-unstable#cargo github:nixos/nixpkgs/nixos-unstable#gcc + - cargo test --workspace --all-targets diff --git a/.woodpecker/check_fmt.yaml b/.woodpecker/check_fmt.yaml index fbee4b6..5e95d46 100644 --- a/.woodpecker/check_fmt.yaml +++ b/.woodpecker/check_fmt.yaml @@ -2,7 +2,7 @@ when: - event: pull_request steps: - - name: "Run nix flake check" + - name: "Run treefmt" image: docker.nix-community.org/nixpkgs/nix-flakes commands: - nix fmt -- --fail-on-change