From 88d58c469cc4ec1be18d96fe8a94a8a2fbcac145 Mon Sep 17 00:00:00 2001 From: Tom - Henry Coursow Date: Thu, 27 Jul 2023 14:51:48 +0200 Subject: [PATCH] .gitea/workflows/deploy.yml aktualisiert --- .gitea/workflows/deploy.yml | 30 +++++++++++++++++++++++++++--- 1 file changed, 27 insertions(+), 3 deletions(-) diff --git a/.gitea/workflows/deploy.yml b/.gitea/workflows/deploy.yml index 7168e96..8933077 100644 --- a/.gitea/workflows/deploy.yml +++ b/.gitea/workflows/deploy.yml @@ -9,12 +9,20 @@ jobs: steps: - name: Get code uses: actions/checkout@v3 + - 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: Cache dependencies id: cache uses: actions/cache@v3 with: path: node_modules - key: deps-node-modules-${{ hashFiles('**/package-lock.json') }} + key: deps-node-modules-${{ steps.get-cache-hash.outputs.hash }} - name: Install dependencies if: steps.cache.outputs.cache-hit != 'true' run: npm ci @@ -25,12 +33,20 @@ jobs: steps: - name: Get code uses: actions/checkout@v3 + - 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: Cache dependencies id: cache uses: actions/cache@v3 with: path: node_modules - key: deps-node-modules-${{ hashFiles('**/package-lock.json') }} + key: deps-node-modules-${{ steps.get-cache-hash.outputs.hash }} - name: Install dependencies if: steps.cache.outputs.cache-hit != 'true' run: npm ci @@ -49,12 +65,20 @@ jobs: steps: - name: Get code uses: actions/checkout@v3 + - 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: Cache dependencies id: cache uses: actions/cache@v3 with: path: node_modules - key: deps-node-modules-${{ hashFiles('**/package-lock.json') }} + key: deps-node-modules-${{ steps.get-cache-hash.outputs.hash }} - name: Install dependencies if: steps.cache.outputs.cache-hit != 'true' run: npm ci