2020-05-22 18:42:48 -07:00
|
|
|
name: CI
|
2020-05-22 13:35:14 -07:00
|
|
|
|
|
|
|
on:
|
2020-05-22 18:42:48 -07:00
|
|
|
push:
|
2021-12-28 07:39:23 -08:00
|
|
|
branches: [main]
|
2020-05-22 18:42:48 -07:00
|
|
|
pull_request:
|
|
|
|
paths:
|
2020-06-09 16:51:22 -07:00
|
|
|
- "**.js"
|
|
|
|
- "package.json"
|
|
|
|
- ".github/workflows/ci.yml"
|
2020-05-22 13:35:14 -07:00
|
|
|
|
|
|
|
jobs:
|
2020-05-22 18:42:48 -07:00
|
|
|
test:
|
2020-05-22 13:35:14 -07:00
|
|
|
strategy:
|
|
|
|
matrix:
|
|
|
|
os: [ubuntu-latest, windows-latest, macOS-latest]
|
2021-07-18 13:15:19 -07:00
|
|
|
node: ["12.20.0", "14.13.1", "16.0.0"]
|
2020-05-22 13:35:14 -07:00
|
|
|
exclude:
|
|
|
|
# On Windows, run tests with only the LTS environments.
|
|
|
|
- os: windows-latest
|
2021-07-18 13:15:19 -07:00
|
|
|
node: "12.22.3"
|
2020-05-22 13:35:14 -07:00
|
|
|
- os: windows-latest
|
2021-07-18 13:15:19 -07:00
|
|
|
node: "16.0.0"
|
2020-05-22 13:35:14 -07:00
|
|
|
# On macOS, run tests with only the LTS environments.
|
|
|
|
- os: macOS-latest
|
2021-07-18 13:15:19 -07:00
|
|
|
node: "12.22.3"
|
2020-05-22 13:35:14 -07:00
|
|
|
- os: macOS-latest
|
2021-07-18 13:15:19 -07:00
|
|
|
node: "16.0.0"
|
2020-05-22 13:35:14 -07:00
|
|
|
|
|
|
|
runs-on: ${{ matrix.os }}
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
2020-06-09 17:26:24 -07:00
|
|
|
|
2021-07-18 13:15:19 -07:00
|
|
|
- uses: actions/setup-node@v2
|
2020-05-22 13:35:14 -07:00
|
|
|
with:
|
2020-06-09 17:26:24 -07:00
|
|
|
node-version: ${{ matrix.node }}
|
|
|
|
|
2020-05-22 18:42:48 -07:00
|
|
|
- run: npm install
|
|
|
|
|
|
|
|
- run: npm test -- --colors
|