-
-
Notifications
You must be signed in to change notification settings - Fork 1k
38 lines (36 loc) · 1013 Bytes
/
lint_and_test.yml
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
30
31
32
33
34
35
36
37
38
name: Lint & Test
on:
push:
branches:
- master
pull_request:
# types: [opened, synchronize, reopened, ready_for_review]
branches:
- '**'
jobs:
test:
name: Lint & test on node ${{ matrix.node }} and ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
node: [ '20.x', '18.x' ]
# os: [ubuntu-latest, windows-latest, macOS-latest]
os: [ubuntu-latest]
steps:
- uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node }}
- name: Install dependencies
run: npm install
# lint is included in pretest
# - name: Lint
# run: npm run lint
- name: Test
run: npm test
- name: Coverage
run: npm run test:coverage
# run: npm run test:coverage && cat ./coverage/lcov.info | node_modules/.bin/coveralls --verbose
- name: Coveralls
uses: coverallsapp/github-action@v2