File tree Expand file tree Collapse file tree 2 files changed +35
-0
lines changed
Expand file tree Collapse file tree 2 files changed +35
-0
lines changed Original file line number Diff line number Diff line change 1+ name : " Test"
2+
3+ on :
4+ pull_request :
5+ push :
6+ branches : [ main ]
7+
8+ jobs :
9+ tests :
10+ strategy :
11+ matrix :
12+ os : [ubuntu-latest, macos-latest]
13+ runs-on : ${{ matrix.os }}
14+
15+ steps :
16+ - uses : actions/checkout@v4
17+ - uses : cachix/install-nix-action@v26
18+ - uses : cachix/cachix-action@v14
19+ with :
20+ name : devenv
21+ - name : Install devenv.sh
22+ run : nix profile install nixpkgs#devenv
23+
24+ - name : Build the devenv shell and run any pre-commit hooks
25+ run : devenv test
Original file line number Diff line number Diff line change 11{
22 languages . rust . enable = true ;
3+
4+ pre-commit . hooks = {
5+ cargo-check . enable = true ;
6+ rustfmt . enable = true ;
7+ clippy . enable = true ;
8+ } ;
9+
10+ enterTest = ''
11+ cargo test --all --verbose
12+ '' ;
313}
You can’t perform that action at this time.
0 commit comments