Skip to content

Commit 7bb3389

Browse files
committed
ci
1 parent 4e10a94 commit 7bb3389

2 files changed

Lines changed: 22 additions & 13 deletions

File tree

.github/CODEOWNERS

Lines changed: 0 additions & 1 deletion
This file was deleted.

.github/workflows/ci.yml

Lines changed: 22 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,22 @@
11
name: CI
22

3-
on: [push]
3+
on: [push, workflow_dispatch]
44

55
jobs:
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

Comments
 (0)