Skip to content

Commit 4cbf2e4

Browse files
authored
Merge pull request #166 from Code-Hex/fix/actions
fixed actions to use the latest version setup action
2 parents 9afc7a8 + e33a53b commit 4cbf2e4

File tree

1 file changed

+8
-20
lines changed

1 file changed

+8
-20
lines changed

.github/workflows/ci.yml

Lines changed: 8 additions & 20 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: current
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
33-
with:
34-
node-version: 17
35-
- name: Cache Yarn
36-
uses: actions/cache@v2
26+
uses: actions/setup-node@v3
3727
with:
38-
path: '**/node_modules'
39-
key: ${{ runner.os }}-yarn-${{ hashFiles('yarn.lock') }}
40-
restore-keys: |
41-
${{ runner.os }}-yarn-
28+
node-version: current
29+
cache: 'yarn'
4230
- run: yarn install --frozen-lockfile
4331
- run: yarn lint-fix
4432
- run: yarn prettier

0 commit comments

Comments
 (0)