Try using strategy.matrix to run cargo check
This commit is contained in:
21
.github/workflows/opensk_test.yml
vendored
21
.github/workflows/opensk_test.yml
vendored
@@ -9,7 +9,12 @@ on:
|
|||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
ctap2_test:
|
ctap2_test:
|
||||||
|
name: CTAP2 unit tests
|
||||||
runs-on: ubuntu-18.04
|
runs-on: ubuntu-18.04
|
||||||
|
strategy:
|
||||||
|
matrix:
|
||||||
|
cargo_features: [std std,with_ctap1]
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
- uses: actions-rs/toolchain@v1
|
- uses: actions-rs/toolchain@v1
|
||||||
@@ -27,22 +32,10 @@ jobs:
|
|||||||
uses: actions-rs/cargo@v1
|
uses: actions-rs/cargo@v1
|
||||||
with:
|
with:
|
||||||
command: test
|
command: test
|
||||||
args: --release --features std
|
args: --release --features ${{ cargo_features }}
|
||||||
|
|
||||||
- name: Unit testing of CTAP2 (debug mode)
|
- name: Unit testing of CTAP2 (debug mode)
|
||||||
uses: actions-rs/cargo@v1
|
uses: actions-rs/cargo@v1
|
||||||
with:
|
with:
|
||||||
command: test
|
command: test
|
||||||
args: --features std
|
args: --features ${{ cargo_features }}
|
||||||
|
|
||||||
- name: Unit testing of CTAP2 (release mode + CTAP1)
|
|
||||||
uses: actions-rs/cargo@v1
|
|
||||||
with:
|
|
||||||
command: test
|
|
||||||
args: --features std,with_ctap1
|
|
||||||
|
|
||||||
- name: Unit testing of CTAP2 (debug mode + CTAP1)
|
|
||||||
uses: actions-rs/cargo@v1
|
|
||||||
with:
|
|
||||||
command: test
|
|
||||||
args: --features std,with_ctap1
|
|
||||||
|
|||||||
Reference in New Issue
Block a user