From 94b6bd402f7b7ede5c6cdf3b62483fe292804105 Mon Sep 17 00:00:00 2001 From: Andreas Hnida Date: Thu, 18 Apr 2024 22:09:34 +0200 Subject: [PATCH] add RUNNER_TOOL_CACHE env and remove Go and Node modules caching` --- .../workflows/build-and-deploy-pipeline.yaml | 18 ++---------------- 1 file changed, 2 insertions(+), 16 deletions(-) diff --git a/.gitea/workflows/build-and-deploy-pipeline.yaml b/.gitea/workflows/build-and-deploy-pipeline.yaml index 9a6d49e..7395958 100644 --- a/.gitea/workflows/build-and-deploy-pipeline.yaml +++ b/.gitea/workflows/build-and-deploy-pipeline.yaml @@ -7,6 +7,8 @@ on: jobs: buildAndDeploy: + env: + RUNNER_TOOL_CACHE: /toolcache runs-on: ubuntu-latest steps: - uses: actions/checkout@v2.4.0 @@ -26,28 +28,12 @@ jobs: with: go-version: '1.20.5' - - name: Cache Go modules - uses: actions/cache@v3 - with: - path: ~/go/pkg/mod - key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }} - restore-keys: | - ${{ runner.os }}-go- - - name: Set up Node.js uses: actions/setup-node@v4.0.2 with: node-version: '20' cache: 'npm' - - name: Cache Node modules - uses: actions/cache@v3 - with: - path: ~/.npm - key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }} - restore-keys: | - ${{ runner.os }}-node- - - name: Setup Project run: npm run project-setup