Intentionally break paths #9
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: Node.js CI | |
on: [push, pull_request] | |
jobs: | |
test: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [windows-2022, macos-14] | |
node-version: ['18.x'] | |
test-command: | |
- npm run test-style | |
- npm run test-types | |
- npm run test-unit | |
exclude: | |
# The `test-style` script is platform-independent, so there is no | |
# value in executing it in multiple operating systems. | |
- os: macos-14 | |
test-command: npm run test-style | |
# The `test-types` script is platform-independent, so there is no | |
# value in executing it in multiple operating systems. | |
- os: macos-14 | |
test-command: npm run test-types | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Use Node.js | |
uses: actions/setup-node@v3 | |
with: | |
node-version: ${{ matrix.node-version }} | |
- run: npm ci | |
- run: ${{ matrix.test-command }} |