Skip to content

Commit 79f1a9e

Browse files
committed
update github action config
1 parent eb9668f commit 79f1a9e

File tree

1 file changed

+17
-9
lines changed

1 file changed

+17
-9
lines changed

.github/workflows/ci.yml

+17-9
Original file line numberDiff line numberDiff line change
@@ -3,20 +3,28 @@ on: [push]
33
jobs:
44
run:
55
name: Run
6-
runs-on: ${{ matrix.os }}
7-
strategy:
8-
matrix:
9-
os: [ubuntu-latest]
6+
runs-on: ubuntu-latest
7+
108
steps:
11-
- uses: actions/checkout@master
9+
- uses: actions/checkout@v2
10+
- uses: actions/setup-node@v2
11+
with:
12+
node-version: '14'
13+
14+
- name: Get yarn cache directory path
15+
id: yarn-cache-dir-path
16+
run: echo "::set-output name=dir::$(yarn cache dir)"
1217

13-
- name: Set Node.js 12.x
14-
uses: actions/setup-node@v1
18+
- uses: actions/cache@v2
19+
id: yarn-cache
1520
with:
16-
version: 12.x
21+
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
22+
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
23+
restore-keys: |
24+
${{ runner.os }}-yarn-
1725
1826
- name: Install
19-
run: yarn install
27+
run: yarn install --frozen-lockfile --non-interactive
2028

2129
- name: Lint
2230
run: yarn lint

0 commit comments

Comments
 (0)