This repository was archived by the owner on Oct 10, 2025. It is now read-only.
chore: add webauthn tests #2072
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: CI | |
| on: | |
| pull_request: | |
| push: | |
| branches: | |
| - master | |
| - next | |
| - rc | |
| workflow_dispatch: | |
| jobs: | |
| test: | |
| name: Test / OS ${{ matrix.os }} / Node ${{ matrix.node }} | |
| strategy: | |
| matrix: | |
| os: [ubuntu-latest] | |
| node: ["18", "20"] | |
| runs-on: ${{ matrix.os }} | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Set up Node | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: ${{ matrix.node }} | |
| - name: Build | |
| run: | | |
| npm ci | |
| npm run build | |
| - name: Run tests | |
| run: | | |
| cd test && npm ci && cd .. | |
| npm t | |
| - name: Upload coverage results to Coveralls | |
| uses: coverallsapp/github-action@v2 | |
| with: | |
| fail-on-error: false | |
| github-token: ${{ secrets.GITHUB_TOKEN }} | |
| path-to-lcov: ./test/coverage/lcov.info | |
| base-path: ./src |