File tree Expand file tree Collapse file tree 1 file changed +44
-0
lines changed Expand file tree Collapse file tree 1 file changed +44
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : test-javascript
2
+
3
+ on :
4
+ push :
5
+ branches :
6
+ - main
7
+ pull_request :
8
+ branches :
9
+ - main
10
+ workflow_call :
11
+
12
+ jobs :
13
+ test-javascript :
14
+ runs-on : ${{ matrix.os }}
15
+ strategy :
16
+ fail-fast : false
17
+ matrix :
18
+ os :
19
+ - ubuntu-latest
20
+ node-version : ["12.x", "14.x", "16.x", "17.x"]
21
+ include :
22
+ - os : windows-latest
23
+ node-version : " 17.x"
24
+ - os : macos-latest
25
+ node-version : " 17.x"
26
+
27
+ steps :
28
+ - name : set git core.autocrlf to 'input'
29
+ run : git config --global core.autocrlf input
30
+
31
+ - uses : actions/checkout@v2
32
+
33
+ - name : with Node.js ${{ matrix.node-version }} on ${{ matrix.os }}
34
+ uses : actions/setup-node@v3
35
+ with :
36
+ node-version : ${{ matrix.node-version }}
37
+ cache : " npm"
38
+ cache-dependency-path : package-lock.json
39
+
40
+ - run : npm install-test
41
+
42
+ - run : npm run build
43
+
44
+ - run : npm run eslint
You can’t perform that action at this time.
0 commit comments