From d681a25df0b795c959987b5798de747100f7d183 Mon Sep 17 00:00:00 2001 From: Tom - Henry Coursow Date: Fri, 14 Jul 2023 22:07:36 +0200 Subject: [PATCH] Update .gitea/workflows/build.yml --- .gitea/workflows/build.yml | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/.gitea/workflows/build.yml b/.gitea/workflows/build.yml index af787aa..001a474 100644 --- a/.gitea/workflows/build.yml +++ b/.gitea/workflows/build.yml @@ -37,7 +37,7 @@ jobs: uses: https://github.com/actions/cache@v3 with: path: ~/.npm - key: deps-node-modules-${{ hashFiles('**/package-lock.json') }} + key: deps-node-modules-${{ steps.get-cache-hash.outputs.hash }} - name: Install Dependencies run: npm ci - name: Run Tests @@ -63,11 +63,21 @@ jobs: runs-on: ubuntu-latest needs: Build steps: + - uses: actions/setup-go@v3 + with: + go-version: '1.20' + - uses: actions/go-hashfiles@v0.0.1 + id: get-cache-hash + with: + patterns: |- + **/package-lock.json + - name: Show key future key value + run: echo "deps-node-modules-${{ steps.get-cache-hash.outputs.hash }}" - name: Setup Chache - uses: actions/cache@v3 + uses: https://github.com/actions/cache@v3 with: path: ~/.npm - key: deps-node-modules-${{ hashFiles('**/package-lock.json') }} + key: deps-node-modules-${{ steps.get-cache-hash.outputs.hash }} - name: Access Artifacts uses: https://github.com/actions/download-artifact@v3 with: