Skip to content

Commit 30abb6c

Browse files
committed
fixed actions
1 parent 8e4977d commit 30abb6c

File tree

1 file changed

+7
-19
lines changed

1 file changed

+7
-19
lines changed

.github/workflows/ci.yml

Lines changed: 7 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -8,37 +8,25 @@ jobs:
88
build:
99
runs-on: ubuntu-latest
1010
steps:
11-
- uses: actions/checkout@v2
11+
- uses: actions/checkout@v3
1212
- name: Setup Node
13-
uses: actions/setup-node@v2
13+
uses: actions/setup-node@v3
1414
with:
15-
node-version: 17
16-
- name: Cache Yarn
17-
uses: actions/cache@v2
18-
with:
19-
path: '**/node_modules'
20-
key: ${{ runner.os }}-yarn-${{ hashFiles('yarn.lock') }}
21-
restore-keys: |
22-
${{ runner.os }}-yarn-
15+
node-version: 18
16+
cache: 'yarn'
2317
- run: yarn install --frozen-lockfile
2418
- run: yarn test
2519
env:
2620
CI: true
2721
eslint:
2822
runs-on: ubuntu-latest
2923
steps:
30-
- uses: actions/checkout@v2
24+
- uses: actions/checkout@v3
3125
- name: Setup Node
32-
uses: actions/setup-node@v2
26+
uses: actions/setup-node@v3
3327
with:
3428
node-version: 18
35-
- name: Cache Yarn
36-
uses: actions/cache@v2
37-
with:
38-
path: '**/node_modules'
39-
key: ${{ runner.os }}-yarn-${{ hashFiles('yarn.lock') }}
40-
restore-keys: |
41-
${{ runner.os }}-yarn-
29+
cache: 'yarn'
4230
- run: yarn install --frozen-lockfile
4331
- run: yarn lint-fix
4432
- run: yarn prettier

0 commit comments

Comments
 (0)