This repository was archived by the owner on Jun 17, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +9
-29
lines changed Expand file tree Collapse file tree 1 file changed +9
-29
lines changed Original file line number Diff line number Diff line change 1
1
name : Test Packages
2
2
on :
3
3
push :
4
- branches : [master ]
4
+ branches : [main ]
5
5
pull_request :
6
6
types : [opened, synchronize]
7
7
8
8
jobs :
9
- build :
10
- runs-on : ubuntu-latest
11
- strategy :
12
- matrix :
13
- node : ['10', '12']
14
- name : Build with Node ${{ matrix.node }}
15
- steps :
16
- - uses : actions/checkout@v2
17
- with :
18
- fetch-depth : 1
19
- - name : Setup node
20
- uses : actions/setup-node@v1
21
- with :
22
- node-version : ${{ matrix.node }}
23
- - run : yarn install --frozen-lockfile --check-files
24
- - run : yarn lerna run prepare --stream
25
- - run : yarn lint --max-warnings=0
26
- - uses : actions/cache@v2
27
- with :
28
- path : ' *'
29
- key : v2-${{ github.sha }}-${{ matrix.node }}
30
9
test :
31
10
runs-on : ubuntu-latest
32
- needs : build
33
11
strategy :
34
- fail-fast : false
35
12
matrix :
36
13
node : ['10', '12']
37
14
package :
@@ -40,14 +17,17 @@ jobs:
40
17
]
41
18
name : Test ${{ matrix.package }} on Node ${{ matrix.node }}
42
19
steps :
43
- - uses : actions/cache@v2
20
+ - uses : actions/checkout@v4
44
21
with :
45
- path : ' *'
46
- key : v2-${{ github.sha }}-${{ matrix.node }}
47
- - name : Set up Node
48
- uses : actions/setup-node@v1
22
+ fetch-depth : 1
23
+ - name : Setup node
24
+ uses : actions/setup-node@v4
49
25
with :
50
26
node-version : ${{ matrix.node }}
27
+ cache : yarn
28
+ - run : yarn install --frozen-lockfile --check-files
29
+ - run : yarn lerna run prepare --stream
30
+ - run : yarn lint --max-warnings=0
51
31
- name : Test ${{ matrix.package }}
52
32
run : cd packages/${{ matrix.package }} && yarn test
53
33
# run: cd packages/${{ matrix.package }} && yarn test --coverage
You can’t perform that action at this time.
0 commit comments