add various cargo ci checks
All checks were successful
ci/woodpecker/pr/cargo_check Pipeline was successful
ci/woodpecker/pr/cargo_clippy Pipeline was successful
ci/woodpecker/pr/cargo_test Pipeline was successful
ci/woodpecker/pr/check_fmt Pipeline was successful

This commit is contained in:
jopejoe1 2025-04-04 12:21:36 +02:00
parent 84385a35f4
commit bff7eca3a0
4 changed files with 28 additions and 1 deletions

View 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

View 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

View 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

View file

@ -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