-
-
Notifications
You must be signed in to change notification settings - Fork 28
29 lines (27 loc) · 757 Bytes
/
test.yml
File metadata and controls
29 lines (27 loc) · 757 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
name: Test
on: [push, pull_request]
jobs:
test:
strategy:
matrix:
os: [ubuntu-latest, windows-latest]
# https://nodejs.org/en/about/releases/
node: [18, 20, 21, 22]
runs-on: ${{ matrix.os }}
steps:
# https://github.com/actions/checkout/issues/135
- run: |
git config --global core.autocrlf false
git config --global core.eol lf
# check out repo
- uses: actions/checkout@v2
# install node
- uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node }}
# install deps
- run: npm install
# lint project
- run: npm run lint
# try to install and test all engines
- run: node src/bin.js --engines=all