File tree Expand file tree Collapse file tree 1 file changed +31
-0
lines changed Expand file tree Collapse file tree 1 file changed +31
-0
lines changed Original file line number Diff line number Diff line change
1
+ # This workflow will do a clean installation of node dependencies, cache/restore them, build the source code and run
2
+ # tests across different versions of node
3
+ # For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-nodejs
4
+
5
+ name : Node.js CI
6
+
7
+ on :
8
+ push :
9
+ branches : [ "master" ]
10
+ pull_request :
11
+ branches : [ "master" ]
12
+
13
+ jobs :
14
+ build :
15
+
16
+ runs-on : ubuntu-22.04
17
+
18
+ strategy :
19
+ matrix :
20
+ node-version : [10.x, 12.x]
21
+ # See supported Node.js release schedule at https://nodejs.org/en/about/releases/
22
+
23
+ steps :
24
+ - uses : actions/checkout@v3
25
+ - name : Use Node.js ${{ matrix.node-version }}
26
+ uses : actions/setup-node@v3
27
+ with :
28
+ node-version : ${{ matrix.node-version }}
29
+ cache : ' npm'
30
+ - run : npm ci
31
+ - run : npm run build --if-present
You can’t perform that action at this time.
0 commit comments