Skip to content

Fix the package test script in the GitHub Actions CI environment. #83

Fix the package test script in the GitHub Actions CI environment.

Fix the package test script in the GitHub Actions CI environment. #83

Workflow file for this run

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