File tree Expand file tree Collapse file tree 2 files changed +53
-0
lines changed Expand file tree Collapse file tree 2 files changed +53
-0
lines changed Original file line number Diff line number Diff line change 19
19
uses : ./.github/workflows/prepare-cache.yml
20
20
with :
21
21
os : ubuntu-latest
22
+ prepare-npm-cache-macos :
23
+ uses : ./.github/workflows/prepare-cache.yml
24
+ with :
25
+ os : macos-latest
26
+ prepare-npm-cache-windows :
27
+ uses : ./github/workflows/prepare-cache.yml
28
+ with :
29
+ os : windows-latest
22
30
23
31
lint :
24
32
name : Lint
35
43
run : npm ci
36
44
- name : run eslint
37
45
run : npm run lint
46
+
47
+ test-ubuntu :
48
+ uses : ./.github/workflows/test.yml
49
+ needs : prepare-npm-cache-ubuntu
50
+ with :
51
+ os : ubuntu-latest
52
+ test-macos :
53
+ uses : ./.github/workflows/test.yml
54
+ needs : prepare-npm-cache-macos
55
+ with :
56
+ os : macos-latest
57
+ test-windows :
58
+ uses : ./.github/workflows/test.yml
59
+ needs : prepare-map-cache-windows
60
+ with :
61
+ os : windows-latest
Original file line number Diff line number Diff line change
1
+ name : TEst
2
+
3
+ on :
4
+ workflow_call :
5
+ inputs :
6
+ os :
7
+ required : true
8
+ type : string
9
+
10
+ jobs :
11
+ test :
12
+ strategy :
13
+ fail-fast : false
14
+ matrix :
15
+ node-version : [14.x, 16.x]
16
+ name : Node v${{ matrix.node-version }} on ${{ input.os }}
17
+ runs-on : ${{ input.os }}
18
+
19
+ steps :
20
+ - uses : actions/checkout@v3
21
+ - name : Use Node.js ${{ matrix.node-version }}
22
+ uses : actions/setup-node@v3
23
+ with :
24
+ node-version : ${{ matrix.node-version }}
25
+ cache : npm
26
+ - name : install
27
+ run : npm ci
28
+ - name : run tests
29
+ run : npm run jest-ci
You can’t perform that action at this time.
0 commit comments