Skip to content

Commit 1d2b53f

Browse files
authored
Merge pull request #64 from th-ch/ci
Improve CI
2 parents 0c819e9 + 0fd4933 commit 1d2b53f

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

.github/workflows/build.yml

+13-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ jobs:
88
name: Build YouTube Music
99
runs-on: ${{ matrix.os }}
1010
strategy:
11-
fail-fast: false
11+
fail-fast: true
1212
matrix:
1313
os: [macos-latest, ubuntu-latest, windows-latest]
1414

@@ -20,6 +20,18 @@ jobs:
2020
with:
2121
node-version: "12.x"
2222

23+
- name: Get yarn cache directory path
24+
id: yarn-cache-dir-path
25+
run: echo "::set-output name=dir::$(yarn cache dir)"
26+
27+
- uses: actions/cache@v2
28+
id: yarn-cache
29+
with:
30+
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
31+
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
32+
restore-keys: |
33+
${{ runner.os }}-yarn-
34+
2335
- name: Install dependencies
2436
run: yarn --frozen-lockfile
2537

0 commit comments

Comments
 (0)