File tree Expand file tree Collapse file tree 1 file changed +29
-17
lines changed
Expand file tree Collapse file tree 1 file changed +29
-17
lines changed Original file line number Diff line number Diff line change 1- name : Test CI
1+ name : " Test CI"
22
3- on :
4- push :
5- branches : [ "main" ]
6- pull_request :
7- branches : [ "main" ]
8-
9- env :
10- CARGO_TERM_COLOR : always
3+ on : [push, pull_request]
114
125jobs :
13- build :
14-
6+ tests :
157 runs-on : ubuntu-latest
16-
178 steps :
18- - uses : actions/checkout@v3
19- - name : Build
20- run : cargo build --verbose
21- # - name: Run tests
22- # run: cargo test --verbose
9+ - name : Clone the repository
10+ uses : actions/checkout@v4
11+
12+ - name : Install Nix
13+ uses : DeterminateSystems/nix-installer-action@main
14+
15+ - name : Cache Nix store
16+ uses : DeterminateSystems/magic-nix-cache-action@main
17+
18+ - name : Check for flake configurations
19+ run : nix flake check --all-systems --show-trace
20+
21+ - name : Build the project
22+ run : nix-shell --run "cargo build --release --verbose"
23+
24+ - name : Run lint
25+ run : nix-shell --run "cargo clippy --verbose"
26+
27+ - name : Run format check
28+ run : nix-shell --run "cargo fmt --all -- --check"
29+
30+ - name : Run tests
31+ run : nix-shell --run "cargo test --verbose"
32+
33+ - name : Build nix package
34+ run : nix build .
You can’t perform that action at this time.
0 commit comments