File tree Expand file tree Collapse file tree 1 file changed +40
-0
lines changed
Expand file tree Collapse file tree 1 file changed +40
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Node CI
2+
3+ on : [push]
4+
5+ jobs :
6+ build :
7+ name : Test Node.js ${{ matrix.node-version }} on ${{ matrix.os }}
8+
9+ strategy :
10+ matrix :
11+ os : [ubuntu-latest, macos-latest, windows-latest]
12+ node-version : [6.x, 8.x, 10.x, 12.x]
13+
14+ runs-on : ${{ matrix.os }}
15+
16+ steps :
17+ - uses : actions/checkout@v1
18+
19+ - name : Use Node.js ${{ matrix.node-version }}
20+ uses : actions/setup-node@v1
21+ with :
22+ node-version : ${{ matrix.node-version }}
23+
24+ - name : Print Node.js Version
25+ run : node --version
26+
27+ - name : Install Dependencies
28+ run : npm install
29+ env :
30+ CI : true
31+
32+ - name : Run "build" step
33+ run : npm run build --if-present
34+ env :
35+ CI : true
36+
37+ - name : Run tests
38+ run : npm test
39+ env :
40+ CI : true
You can’t perform that action at this time.
0 commit comments