add tests for run loop with nested callbacks #74
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: | |
test: | |
strategy: | |
matrix: | |
os: [macos-latest, windows-latest, ubuntu-latest] | |
node: [20, 22] | |
runs-on: ${{ matrix.os }} | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: pnpm/action-setup@v4 | |
with: | |
version: latest | |
- uses: actions/setup-node@v4 | |
with: | |
cache: pnpm | |
node-version: ${{ matrix.node }} | |
- name: Install node-gyp | |
run: pnpm add -g node-gyp | |
- run: pnpm install | |
env: | |
NO_PREBUILD: true | |
- name: Build Addon | |
run: node-gyp rebuild | |
# worker_threads needs js output | |
- name: Test | |
run: | | |
pnpm run compile:ts | |
pnpm run test:coverage | |
- uses: codecov/codecov-action@v4 |