Fix the package test script in the GitHub Actions CI environment. #83
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: CI | |
on: [push, workflow_dispatch] | |
jobs: | |
test: | |
name: Test with Node.js v${{ matrix.node }} and ${{ matrix.os }} | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [ubuntu-latest, macos-latest] | |
node: ["18", "20", "22"] | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup Node.js v${{ matrix.node }} | |
uses: actions/setup-node@v4 | |
with: | |
node-version: ${{ matrix.node }} | |
- name: npm install | |
run: npm install | |
- name: ESLint | |
run: npm run eslint | |
- name: Prettier | |
run: npm run prettier | |
- name: Type check | |
run: npm run types | |
- name: Tests | |
shell: bash | |
run: | | |
shopt -s globstar | |
npm run tests |