add various cargo ci checks
This commit is contained in:
parent
84385a35f4
commit
bff7eca3a0
4 changed files with 28 additions and 1 deletions
9
.woodpecker/cargo_check.yaml
Normal file
9
.woodpecker/cargo_check.yaml
Normal file
|
@ -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
|
9
.woodpecker/cargo_clippy.yaml
Normal file
9
.woodpecker/cargo_clippy.yaml
Normal file
|
@ -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
|
9
.woodpecker/cargo_test.yaml
Normal file
9
.woodpecker/cargo_test.yaml
Normal file
|
@ -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
|
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue