11name : CI
22
3- on : [push]
3+ on : [push, workflow_dispatch ]
44
55jobs :
66 setup :
77 runs-on : ubuntu-latest
88 steps :
9- - uses : actions/checkout@v3
10- - uses : actions/setup-node@v3
9+ - uses : actions/checkout@v4
10+ - uses : actions/setup-node@v4
1111 with :
12- node-version : 16 .x
12+ node-version : 22 .x
1313 cache : ' yarn'
14- - uses : actions/cache@v3
14+ - uses : actions/cache@v4
1515 id : yarn-cache
1616 with :
17- path : ' **/node_modules'
17+ path : |
18+ ${{ github.workspace }}/node_modules
19+ ${{ github.workspace }}/.yarn/cache
1820 key : ${{ runner.os }}-${{ hashFiles('**/yarn.lock') }}
1921 - name : Install packages
2022 if : steps.yarn-cache.outputs.cache-hit != 'true'
@@ -24,10 +26,12 @@ jobs:
2426 runs-on : ubuntu-latest
2527 needs : setup
2628 steps :
27- - uses : actions/checkout@v3
28- - uses : actions/cache@v3
29+ - uses : actions/checkout@v4
30+ - uses : actions/cache@v4
2931 with :
30- path : ' **/node_modules'
32+ path : |
33+ ${{ github.workspace }}/node_modules
34+ ${{ github.workspace }}/.yarn/cache
3135 key : ${{ runner.os }}-${{ hashFiles('**/yarn.lock') }}
3236 - name : solhint
3337 run : yarn solhint
@@ -40,10 +44,16 @@ jobs:
4044 runs-on : ubuntu-latest
4145 needs : [setup, check]
4246 steps :
43- - uses : actions/checkout@v3
44- - uses : actions/cache@v3
47+ - uses : actions/checkout@v4
48+ - uses : actions/cache@v4
4549 with :
46- path : ' **/node_modules'
50+ path : |
51+ ${{ github.workspace }}/node_modules
52+ ${{ github.workspace }}/.yarn/cache
4753 key : ${{ runner.os }}-${{ hashFiles('**/yarn.lock') }}
4854 - name : unit test
4955 run : yarn test
56+
57+ concurrency :
58+ group : ${{ github.workflow }}-${{ github.ref }}
59+ cancel-in-progress : true
0 commit comments