fix(cable): return ConnectionFailed for both Terminated paths (#222) #881
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Build and run tests | |
| on: [push, pull_request] | |
| jobs: | |
| build: | |
| env: | |
| RUST_LOG: debug | |
| name: Build and run tests | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v2 | |
| - name: Checkout submodules | |
| run: git submodule update --init --recursive | |
| - name: Update apt cache | |
| run: sudo apt-get update | |
| - name: Install system dependencies | |
| run: sudo apt-get install libudev-dev libdbus-1-dev libsodium-dev libnfc-dev libpcsclite-dev publicsuffix | |
| - name: Clippy | |
| run: cargo clippy --workspace --all-targets --all-features -- -D warnings | |
| - name: Check formatting | |
| run: cargo fmt --all -- --check | |
| - name: Build | |
| run: cargo build --workspace --all-targets --all-features | |
| - name: Build with only nfc-backend-pcsc | |
| run: cargo build -p libwebauthn --examples --features nfc-backend-pcsc | |
| - name: Build with only nfc-backend-libnfc | |
| run: cargo build -p libwebauthn --examples --features nfc-backend-libnfc | |
| - name: Run tests | |
| run: cargo test --workspace --verbose | |
| env: | |
| LIBWEBAUTHN_PSL_SYSTEM_TEST: "1" | |
| - name: Verify libwebauthn publishes cleanly | |
| run: cargo publish --dry-run -p libwebauthn |