Skip to content

Commit fdd6cb9

Browse files
authored
Merge pull request #82 from lightninglabs/ci-yarn-cache
ci: add yarn cache to backend CI build
2 parents c1d31b0 + a58a392 commit fdd6cb9

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

.github/workflows/main.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ jobs:
4848
path: ${{ steps.yarn-cache-dir.outputs.dir }}
4949
key: ${{ runner.os }}-yarn-${{ matrix.node_version }}-${{ hashFiles('**/yarn.lock') }}
5050
restore-keys: |
51+
${{ runner.os }}-yarn-${{ matrix.node_version }}-${{ hashFiles('**/yarn.lock') }}
5152
${{ runner.os }}-yarn-${{ matrix.node_version }}-
5253
${{ runner.os }}-yarn-
5354
@@ -90,6 +91,21 @@ jobs:
9091
${{ runner.os }}-go-${{ matrix.go_version }}-
9192
${{ runner.os }}-go-
9293
94+
- name: get yarn cache dir
95+
id: yarn-cache-dir
96+
run: echo "::set-output name=dir::$(yarn cache dir)"
97+
98+
- name: yarn cache
99+
uses: actions/cache@v2
100+
id: yarn-cache
101+
with:
102+
path: ${{ steps.yarn-cache-dir.outputs.dir }}
103+
key: ${{ runner.os }}-yarn-12.x-${{ hashFiles('**/yarn.lock') }}
104+
restore-keys: |
105+
${{ runner.os }}-yarn-12.x-${{ hashFiles('**/yarn.lock') }}
106+
${{ runner.os }}-yarn-12.x-
107+
${{ runner.os }}-yarn-
108+
93109
- name: setup go v${{ matrix.go_version }}
94110
uses: actions/setup-go@v2
95111
with:

0 commit comments

Comments
 (0)