Skip to content

Commit 9038fb4

Browse files
committed
add test CI
1 parent c33612e commit 9038fb4

1 file changed

Lines changed: 35 additions & 0 deletions

File tree

.github/workflows/test.yml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
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

0 commit comments

Comments
 (0)