refactor(server): Add SubtleAlwaysAuthenticateEvent for better type v… #173
Workflow file for this run
This file contains 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: Test | |
on: [push] | |
jobs: | |
build: | |
runs-on: macos-latest | |
strategy: | |
matrix: | |
node-version: [20.x] | |
steps: | |
- name: Setup Soft HSM | |
run: | | |
brew install softhsm | |
softhsm2-util --init-token --so-pin "12345" --pin "12345" --slot 0 --label "My slot 0" | |
- uses: actions/checkout@v4 | |
- name: Use Node.js ${{ matrix.node-version }} | |
uses: actions/setup-node@v4 | |
with: | |
node-version: ${{ matrix.node-version }} | |
- name: Install Yarn | |
run: npm install -g yarn node-gyp@latest | |
- name: restore lerna | |
uses: actions/cache@v4 | |
with: | |
path: '**/node_modules' | |
key: ${{ runner.os }}-${{ hashFiles('**/yarn.lock') }} | |
- name: Install dependencies | |
run: yarn | |
- name: Run linter | |
run: npm run lint | |
- name: Run test with coverage | |
run: npm run coverage | |
env: | |
SOFT_HSM_LIBRARY: /opt/homebrew/Cellar/softhsm/2.6.1/lib/softhsm/libsofthsm2.so | |
- name: Coveralls | |
uses: coverallsapp/github-action@master | |
with: | |
github-token: ${{ secrets.GITHUB_TOKEN }} |