1.8.0 #291
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: Node CI | |
on: | |
push: | |
paths: | |
- '.github/workflows/nodejs.yml' | |
- 'dist/**/*' | |
- 'scripts/**/*' | |
- 'src/**/*' | |
- 'test/**/*' | |
- 'package.json' | |
- '*.js' | |
jobs: | |
build: | |
strategy: | |
matrix: | |
os: [ubuntu-latest, windows-latest, macos-latest] | |
node-version: [18.x, 20.x, 22.x] | |
runs-on: ${{ matrix.os }} | |
steps: | |
- uses: actions/checkout@main | |
- name: Use Node.js ${{ matrix.node-version }} | |
uses: actions/setup-node@main | |
with: | |
node-version: ${{ matrix.node-version }} | |
cache: 'npm' | |
- name: npm install, build, and test | |
run: | | |
npm ci | |
npm run test:source | |
npm run test:es:prod | |
npm run test:es:dev | |
npm run build | |
npm run test:source | |
npm run test:es:prod | |
npm run test:es:dev | |
- name: Generate test report | |
run: jest --ci --reporters=jest-junit | |
if: always() # to make sure it runs even if tests fail | |
env: | |
CI: true |