| 1 |
name: CI |
| 2 |
|
| 3 |
on: [push, pull_request] |
| 4 |
|
| 5 |
jobs: |
| 6 |
build: |
| 7 |
strategy: |
| 8 |
matrix: |
| 9 |
node-version: [14.x, 16.x, 18.x, 19.x] |
| 10 |
platform: |
| 11 |
- os: ubuntu-latest |
| 12 |
shell: bash |
| 13 |
- os: macos-latest |
| 14 |
shell: bash |
| 15 |
- os: windows-latest |
| 16 |
shell: bash |
| 17 |
- os: windows-latest |
| 18 |
shell: powershell |
| 19 |
fail-fast: false |
| 20 |
|
| 21 |
runs-on: ${{ matrix.platform.os }} |
| 22 |
defaults: |
| 23 |
run: |
| 24 |
shell: ${{ matrix.platform.shell }} |
| 25 |
|
| 26 |
steps: |
| 27 |
- name: Checkout Repository |
| 28 |
uses: actions/checkout@v3 |
| 29 |
|
| 30 |
- name: Use Nodejs ${{ matrix.node-version }} |
| 31 |
uses: actions/setup-node@v3 |
| 32 |
with: |
| 33 |
node-version: ${{ matrix.node-version }} |
| 34 |
|
| 35 |
- name: Install dependencies |
| 36 |
run: npm install |
| 37 |
|
| 38 |
- name: Run Tests |
| 39 |
run: npm test -- -c -t0 |