File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ # Adapted from: https://github.com/jonhoo/inferno/blob/main/.github/workflows/test.yml
2+ ---
3+ permissions :
4+ contents : read
5+ on :
6+ push :
7+ branches : [main]
8+ pull_request :
9+ concurrency :
10+ group : ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
11+ cancel-in-progress : true
12+ name : test
13+ jobs :
14+ required :
15+ runs-on : ubuntu-latest
16+ name : ubuntu / ${{ matrix.toolchain }}
17+ strategy :
18+ matrix :
19+ # run on stable and beta to ensure that tests won't break on the next version of the rust
20+ # toolchain
21+ toolchain : [stable, beta]
22+ steps :
23+ - uses : actions/checkout@v4
24+ with :
25+ submodules : true
26+ - name : Install ${{ matrix.toolchain }}
27+ uses : dtolnay/rust-toolchain@master
28+ with :
29+ toolchain : ${{ matrix.toolchain }}
30+ - name : cargo generate-lockfile
31+ run : cargo generate-lockfile
32+ - name : cargo test --locked
33+ run : cargo test --locked --all-features --all-targets
34+ - name : cargo test --doc
35+ run : cargo test --locked --all-features --doc
You can’t perform that action at this time.
0 commit comments