@@ -23,65 +23,39 @@ jobs:
23
23
check_and_build :
24
24
name : Check and build codebase
25
25
runs-on : ubuntu-latest
26
- strategy :
27
- matrix :
28
- node-version : [12.x, 14.x, 16.x]
29
26
steps :
30
- - uses : actions/checkout@v2
31
- - uses : actions/setup-node@v2
27
+ - uses : actions/checkout@v4
28
+ - uses : actions/setup-node@v4
32
29
with :
33
- node-version : ${{ matrix.node-version }}
30
+ cache : ' yarn'
31
+ node-version : 18
34
32
35
- - name : Get Yarn Cache Directory Path
36
- id : cache-dir-path
37
- run : echo "::set-output name=dir::$(yarn cache dir)"
38
-
39
- - name : Use Yarn Cache
40
- uses : actions/cache@v2
41
- id : cache
42
- with :
43
- path : ${{ steps.cache-dir-path.outputs.dir }}
44
- key : ${{ runner.os }}-yarn-${{ matrix.node-version }}-${{ hashFiles('./yarn.lock') }}
45
-
46
- - name : Installation ${{ matrix.node-version }}
33
+ - name : Installation
47
34
run : yarn --prefer-offline --frozen-lockfile --non-interactive
48
35
49
- - name : Check Code ${{ matrix.node-version }}
36
+ - name : Check Code
50
37
run : yarn check:ci
51
38
52
- - name : Build Core ${{ matrix.node-version }}
39
+ - name : Build Core
53
40
run : yarn build
54
41
55
- - name : Check size ${{ matrix.node-version }}
42
+ - name : Check size
56
43
run : yarn size
57
44
58
45
code_coverage :
59
46
name : Check code coverage
60
47
runs-on : ubuntu-latest
61
- strategy :
62
- matrix :
63
- node-version : [16.x]
64
48
steps :
65
- - uses : actions/checkout@v2
66
- - uses : actions/setup-node@v2
67
- with :
68
- node-version : ${{ matrix.node-version }}
69
-
70
- - name : Get Yarn Cache Directory Path
71
- id : cache-dir-path
72
- run : echo "::set-output name=dir::$(yarn cache dir)"
73
-
74
- - name : Use Yarn Cache
75
- uses : actions/cache@v2
76
- id : cache
49
+ - uses : actions/checkout@v4
50
+ - uses : actions/setup-node@v4
77
51
with :
78
- path : ${{ steps.cache-dir-path.outputs.dir }}
79
- key : ${{ runner.os }}-yarn-${{ matrix. node-version }}-${{ hashFiles('./yarn.lock') }}
52
+ cache : ' yarn '
53
+ node-version : 18
80
54
81
- - name : Installation ${{ matrix.node-version }}
55
+ - name : Installation
82
56
run : yarn --prefer-offline --frozen-lockfile --non-interactive
83
57
84
- - name : Build Code Coverage ${{ matrix.node-version }}
58
+ - name : Build Code Coverage
85
59
run : yarn test:cover
86
60
87
61
- name : Coveralls
0 commit comments