1 | name: Cross-OS Tests
|
2 |
|
3 | on: [push, pull_request]
|
4 |
|
5 | jobs:
|
6 | test:
|
7 | strategy:
|
8 | matrix:
|
9 | os:
|
10 | - ubuntu-latest
|
11 | - windows-latest
|
12 | - macos-latest
|
13 | node:
|
14 | - 14
|
15 | - 16
|
16 |
|
17 | runs-on: ${{ matrix.os }}
|
18 | name: ${{ matrix.os }} (Node v${{ matrix.node }})
|
19 |
|
20 | steps:
|
21 | - uses: actions/checkout@v3
|
22 | - uses: actions/setup-node@v3
|
23 | with:
|
24 | node-version: ${{ matrix.node }}
|
25 | - run: |
|
26 | git config --global init.defaultBranch main
|
27 | git config --global user.name User
|
28 | git config --global user.email user@example.org
|
29 | - run: npm install
|
30 | - run: npm test
|