-
Notifications
You must be signed in to change notification settings - Fork 285
36 lines (29 loc) · 936 Bytes
/
nodejs.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
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions
name: 'Node.js CI'
on:
push:
branches: [master]
pull_request:
branches: [master]
jobs:
build:
runs-on: 'ubuntu-latest'
strategy:
matrix:
node-version: [10.x, 12.x, 14.x, 16.x]
steps:
- uses: 'actions/[email protected]'
- name: Use Node.js ${{ matrix.node-version }}
uses: 'actions/[email protected]'
with:
node-version: ${{ matrix.node-version }}
- run: 'npm ci'
- name: Lint
if: ${{ matrix.node-version != '10.x' }}
run: 'npm run lint'
- name: Markdownlint
if: ${{ matrix.node-version != '10.x' }}
run: 'npm run markdownlint'
- run: 'npm run build'
- run: 'DISABLE_LOGGING=1 npm run cover'
- run: 'npx nyc report --reporter=lcov > coverage.lcov && npx codecov'