Skip to content

Commit e5190a6

Browse files
committed
CI: build with MSRV & stable and test features
this creates a build matrix which tests with both the MSRV and the stable rust release and also tests both with the default features and all features selected.
1 parent d370247 commit e5190a6

File tree

1 file changed

+14
-1
lines changed

1 file changed

+14
-1
lines changed

.github/workflows/CI.yml

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,27 +10,40 @@ env:
1010

1111
jobs:
1212
build:
13+
strategy:
14+
fail-fast: false
15+
matrix:
16+
rust: [1.60.0, stable]
17+
features: ['', '--all-features']
1318

1419
runs-on: ubuntu-latest
1520

1621
steps:
1722
- uses: actions/checkout@v3
23+
- uses: dtolnay/rust-toolchain@master
24+
with:
25+
toolchain: ${{ matrix.rust }}
26+
components: rustfmt clippy
1827
- uses: actions-rs/cargo@v1
1928
with:
2029
command: build
30+
args: ${{ matrix.features }}
2131
- uses: actions-rs/cargo@v1
2232
with:
2333
command: check
34+
args: ${{ matrix.features }}
2435
- uses: actions-rs/cargo@v1
2536
with:
26-
command: test
37+
command: test
38+
args: ${{ matrix.features }}
2739
- uses: actions-rs/cargo@v1
2840
with:
2941
command: fmt
3042
args: --all -- --check
3143
- uses: actions-rs/cargo@v1
3244
with:
3345
command: clippy
46+
args: ${{ matrix.features }}
3447
- uses: actions-rs/cargo@v1
3548
with:
3649
command: audit

0 commit comments

Comments
 (0)