@@ -23,65 +23,39 @@ jobs:
2323 check_and_build :
2424 name : Check and build codebase
2525 runs-on : ubuntu-latest
26- strategy :
27- matrix :
28- node-version : [12.x, 14.x, 16.x]
2926 steps :
30- - uses : actions/checkout@v2
31- - uses : actions/setup-node@v2
27+ - uses : actions/checkout@v4
28+ - uses : actions/setup-node@v4
3229 with :
33- node-version : ${{ matrix.node-version }}
30+ cache : ' yarn'
31+ node-version : 18
3432
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
4734 run : yarn --prefer-offline --frozen-lockfile --non-interactive
4835
49- - name : Check Code ${{ matrix.node-version }}
36+ - name : Check Code
5037 run : yarn check:ci
5138
52- - name : Build Core ${{ matrix.node-version }}
39+ - name : Build Core
5340 run : yarn build
5441
55- - name : Check size ${{ matrix.node-version }}
42+ - name : Check size
5643 run : yarn size
5744
5845 code_coverage :
5946 name : Check code coverage
6047 runs-on : ubuntu-latest
61- strategy :
62- matrix :
63- node-version : [16.x]
6448 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
7751 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
8054
81- - name : Installation ${{ matrix.node-version }}
55+ - name : Installation
8256 run : yarn --prefer-offline --frozen-lockfile --non-interactive
8357
84- - name : Build Code Coverage ${{ matrix.node-version }}
58+ - name : Build Code Coverage
8559 run : yarn test:cover
8660
8761 - name : Coveralls
0 commit comments