* Moves all CTAP logic into its own library * workflows fix test * more coveralls workflow tests
57 lines
1.6 KiB
YAML
57 lines
1.6 KiB
YAML
---
|
|
name: OpenSK tests
|
|
on:
|
|
push:
|
|
paths:
|
|
- 'src/**/*.rs'
|
|
pull_request:
|
|
types: [opened, synchronize, reopened]
|
|
|
|
jobs:
|
|
ctap2_test:
|
|
name: CTAP2 unit tests
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
with:
|
|
submodules: "true"
|
|
- name: Install Rust toolchain
|
|
run: rustup show
|
|
- uses: actions/setup-python@v1
|
|
with:
|
|
python-version: 3.7
|
|
- name: Install Python dependencies
|
|
run: python -m pip install --upgrade pip setuptools wheel
|
|
- name: Set up OpenSK
|
|
run: ./setup.sh
|
|
|
|
- name: Unit testing of CTAP2 (release mode)
|
|
uses: actions-rs/cargo@v1
|
|
with:
|
|
toolchain: nightly
|
|
command: test
|
|
args: --manifest-path libraries/opensk/Cargo.toml --release --features std
|
|
|
|
- name: Unit testing of CTAP2 (debug mode)
|
|
uses: actions-rs/cargo@v1
|
|
with:
|
|
toolchain: nightly
|
|
command: test
|
|
args: --manifest-path libraries/opensk/Cargo.toml --features std
|
|
|
|
- name: Unit testing of CTAP2 (release mode + all features)
|
|
uses: actions-rs/cargo@v1
|
|
with:
|
|
toolchain: nightly
|
|
command: test
|
|
args: --manifest-path libraries/opensk/Cargo.toml --release --features std,debug_ctap,with_ctap1,vendor_hid,ed25519
|
|
|
|
- name: Unit testing of CTAP2 (debug mode + all features)
|
|
uses: actions-rs/cargo@v1
|
|
with:
|
|
toolchain: nightly
|
|
command: test
|
|
args: --manifest-path libraries/opensk/Cargo.toml --features std,debug_ctap,with_ctap1,vendor_hid,ed25519
|
|
|