Compare commits

...

1 commit

Author SHA1 Message Date
jopejoe1
4b5efaa76e add various cargo ci checks
Some checks failed
ci/woodpecker/pr/cargo_check Pipeline failed
ci/woodpecker/pr/cargo_clippy Pipeline failed
ci/woodpecker/pr/cargo_test Pipeline failed
ci/woodpecker/pr/check_fmt Pipeline was successful
2025-04-04 12:21:36 +02:00
4 changed files with 25 additions and 1 deletions

View file

@ -0,0 +1,8 @@
when:
- event: pull_request
steps:
- name: "Run cargo check"
image: docker.nix-community.org/nixpkgs/nix-flakes
commands:
- nix run github:nixos/nixpkgs/nixos-unstable#cargo -- check --workspace --all-targets

View file

@ -0,0 +1,8 @@
when:
- event: pull_request
steps:
- name: "Run cargo clippy"
image: docker.nix-community.org/nixpkgs/nix-flakes
commands:
- nix run github:nixos/nixpkgs/nixos-unstable#clippy

View file

@ -0,0 +1,8 @@
when:
- event: pull_request
steps:
- name: "Run cargo test"
image: docker.nix-community.org/nixpkgs/nix-flakes
commands:
- nix run github:nixos/nixpkgs/nixos-unstable#cargo -- test --workspace --all-targets

View file

@ -2,7 +2,7 @@ when:
- event: pull_request - event: pull_request
steps: steps:
- name: "Run nix flake check" - name: "Run treefmt"
image: docker.nix-community.org/nixpkgs/nix-flakes image: docker.nix-community.org/nixpkgs/nix-flakes
commands: commands:
- nix fmt -- --fail-on-change - nix fmt -- --fail-on-change