ci: add yarn caching
Closes
MODIFY
.github/workflows/verify.yaml
.github/workflows/verify.yaml
@@ -63,6 +63,19 @@ jobs:
restore-keys: |
${{ runner.os }}-maven-
+ - name: Get yarn cache directory path
+ id: yarn-cache-dir-path
+ run: echo "::set-output name=dir::$(yarn cache dir)"
+
+ - name: Cache yarn cache
+ uses: actions/cache@v2
+ id: cache-yarn-cache
+ with:
+ path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
+ key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
+ restore-keys: |
+ ${{ runner.os }}-yarn-
+
- name: Build Project
run: |
cd parent && sh ../mvnw -B clean install && cd ..

ci: add yarn caching

Closes #1026