File tree Expand file tree Collapse file tree 1 file changed +33
-0
lines changed Expand file tree Collapse file tree 1 file changed +33
-0
lines changed Original file line number Diff line number Diff line change 1+ name : CI
2+
3+ on :
4+ push :
5+ branches : [ master ]
6+ pull_request :
7+ branches : [ master ]
8+
9+ jobs :
10+ build-and-test :
11+ runs-on : ubuntu-latest
12+
13+ steps :
14+ - name : Checkout code
15+ uses : actions/checkout@v4
16+
17+ - name : Install Nix
18+ uses : DeterminateSystems/nix-installer-action@main
19+
20+ - name : Setup Nix Cache
21+ uses : DeterminateSystems/magic-nix-cache-action@main
22+
23+ - name : Build project
24+ run : nix develop --command cargo build --target x86_64-unknown-linux-musl
25+
26+ - name : Run tests
27+ run : nix develop --command cargo test
28+
29+ - name : Check formatting
30+ run : nix develop --command cargo fmt -- --check
31+
32+ - name : Run clippy
33+ run : nix develop --command cargo clippy -- -D warnings
You can’t perform that action at this time.
0 commit comments