From 35ad89be52fa8a89fe3b18ecba716f375ca89f4e Mon Sep 17 00:00:00 2001 From: Alexander Block Date: Wed, 18 Dec 2024 10:51:06 +0100 Subject: [PATCH] ci: Remove uses of actions/cache actions/go-setup already handles caches --- .github/workflows/release.yml | 8 -------- .github/workflows/tests.yml | 24 ------------------------ 2 files changed, 32 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 9ca6893..7a9145a 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -41,14 +41,6 @@ jobs: registry: ghcr.io username: kluctlbot password: ${{ secrets.GHCR_TOKEN }} - - uses: actions/cache@v4 - with: - path: | - ~/go/pkg/mod - ~/.cache/go-build - key: ${{ runner.os }}-goreleaser-${{ hashFiles('**/go.sum') }} - restore-keys: | - ${{ runner.os }}-goreleaser- - name: Generate helm package run: | make helm-package diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index f5fc067..5e3b469 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -20,14 +20,6 @@ jobs: - uses: actions/setup-go@v5 with: go-version-file: go.mod - - uses: actions/cache@v4 - with: - path: | - ~/go/pkg/mod - ~/.cache/go-build - key: generate-check-go-${{ runner.os }}-${{ hashFiles('**/go.sum') }} - restore-keys: | - generate-check-go-${{ runner.os }}- - name: Verify generated source is up-to-date run: | make generate @@ -85,14 +77,6 @@ jobs: - uses: actions/setup-go@v5 with: go-version-file: go.mod - - uses: actions/cache@v4 - with: - path: | - ~/go/pkg/mod - ~/.cache/go-build - key: check-docker-images-${{ matrix.docker_platform }}-${{ hashFiles('**/go.sum') }} - restore-keys: | - check-docker-images-${{ runner.os }}- - name: Setup QEMU uses: docker/setup-qemu-action@v3 - name: Setup Docker Buildx @@ -122,14 +106,6 @@ jobs: - uses: actions/setup-python@v5 with: python-version: '3.11' - - uses: actions/cache@v4 - with: - path: | - ~/go/pkg/mod - ~/.cache/go-build - key: tests-go-${{ runner.os }}-${{ hashFiles('**/go.sum') }} - restore-keys: | - tests-go-${{ runner.os }}- - name: Run tests shell: bash run: |