From 1f3f888ea1869c10f917122db97f9df4733563eb Mon Sep 17 00:00:00 2001 From: Daan Vanden Bosch Date: Mon, 26 Apr 2021 19:47:25 +0200 Subject: [PATCH] Cache more things in GH actions. --- .github/workflows/deploy.yml | 10 ++++------ .github/workflows/tests.yml | 10 ++++------ 2 files changed, 8 insertions(+), 12 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 1f8e5afb..2a67d410 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -22,12 +22,10 @@ jobs: uses: actions/cache@v2 with: path: | - ~/.gradle/caches - ~/.gradle/wrapper - build/js/node_modules - key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }} - restore-keys: | - ${{ runner.os }}-gradle- + ~/.gradle + .gradle + build/js + key: ${{ runner.os }}-gradle - name: Build run: './gradlew :web:browserDistribution' diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 73c5a09f..6d601c5d 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -23,12 +23,10 @@ jobs: uses: actions/cache@v2 with: path: | - ~/.gradle/caches - ~/.gradle/wrapper - build/js/node_modules - key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }} - restore-keys: | - ${{ runner.os }}-gradle- + ~/.gradle + .gradle + build/js + key: ${{ runner.os }}-gradle - name: Test run: ./gradlew check