Fix handling of scoped packages #22
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: | |
pull_request: | |
types: [opened, synchronize] | |
jobs: | |
test: | |
name: ${{ matrix.os }}-node-${{ matrix.node }} | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [ubuntu-latest, windows-latest, macos-latest] | |
node: [18, 19] | |
steps: | |
- name: Checkout repo | |
uses: actions/checkout@v3 | |
- name: Set up node | |
uses: actions/setup-node@v3 | |
with: | |
node-version: ${{ matrix.node }} | |
- name: Install dependencies | |
run: npm install | |
- name: Install test dependencies | |
working-directory: test | |
run: npm install | |
- name: Run tests | |
working-directory: test | |
run: npm run test |