Compare commits

..

2 commits

Author SHA1 Message Date
72bb162b52 Merge pull request 'add various cargo ci checks' (#38) from ci/add-rust-stuff into main
Reviewed-on: #38
2025-04-07 09:22:39 +02:00
jopejoe1
bff7eca3a0 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
2025-04-04 13:20:52 +02:00
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