generated from GarandPLG/rust-flake-template
This commit is contained in:
1 parent
c4313b4117
commit
dfe46cab96
8 files changed
+80
-12
No files matched your search
@@ -0,0 +1,24 @@
|
||||
name: Rust checks
|
||||
|
||||
on:
|
||||
push:
|
||||
pull_request:
|
||||
|
||||
jobs:
|
||||
check:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: https://github.com/actions/checkout@v4
|
||||
- name: Install Nix
|
||||
uses: https://github.com/cachix/install-nix-action@v31
|
||||
- name: Formatting
|
||||
run: nix develop --no-update-lock-file -c cargo fmt --all -- --check
|
||||
- name: Compilation
|
||||
run: nix develop --no-update-lock-file -c cargo check --all-targets --locked
|
||||
- name: Tests
|
||||
run: nix develop --no-update-lock-file -c cargo test --all-targets --locked
|
||||
- name: Release tests
|
||||
run: nix develop --no-update-lock-file -c cargo test --all-targets --release --locked
|
||||
- name: Clippy
|
||||
run: nix develop --no-update-lock-file -c cargo clippy --all-targets --locked
|
||||
Reference in new issue
Block a user