File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ name : main
2+ on :
3+ push :
4+ branches :
5+ - master
6+ pull_request :
7+ jobs :
8+ build-and-test :
9+ strategy :
10+ matrix :
11+ node :
12+ - ' 10'
13+ - ' 12'
14+ - ' 14'
15+ runs-on : ubuntu-latest
16+ name : Tests on Node.js v${{ matrix.node }}
17+ steps :
18+ - name : Checkout repo
19+ uses : actions/checkout@v2
20+
21+ - name : Setup node
22+ uses : actions/setup-node@v1
23+ with :
24+ node-version : ${{ matrix.node }}
25+
26+ - name : Download deps
27+ uses : bahmutov/npm-install@v1
28+
29+ - name : Build sources
30+ run : npm run build
31+
32+ - name : Run tests with xvfb available
33+ uses : GabrielBB/xvfb-action@v1
34+ with :
35+ run : npm run test
36+
37+ lint :
38+ runs-on : ubuntu-latest
39+ steps :
40+ - name : Checkout repo
41+ uses : actions/checkout@v2
42+
43+ - name : Setup node
44+ uses : actions/setup-node@v1
45+ with :
46+ node-version : ' 14.x'
47+
48+ - name : Download deps
49+ uses : bahmutov/npm-install@v1
50+
51+ - name : Run lint
52+ run : npm run lint
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments