Skip to content

Commit

Permalink
Disable GoSetup Caching (#491)
Browse files Browse the repository at this point in the history
Caching has been slow and unreliable on upload and download. Lets
disable it.

Signed-off-by: Ben Rockwood <benr@cuddletech.com>
  • Loading branch information
benr authored Apr 4, 2023
1 parent f58ac88 commit c18807a
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
1 change: 1 addition & 0 deletions .github/workflows/goreleaser-edge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ jobs:
uses: actions/setup-go@v4
with:
go-version: 1.19
cache: false
- name: Log in to the Container registry
uses: docker/login-action@v2
with:
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ jobs:
uses: actions/setup-go@v4
with:
go-version: 1.19
cache: false

- name: 'Authenticate to Google Cloud'
uses: 'google-github-actions/auth@v1'
Expand Down
7 changes: 5 additions & 2 deletions .github/workflows/pr-test-lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,34 +20,39 @@ jobs:
uses: actions/setup-go@v4
with:
go-version: ${{ env.GO_VERSION }}
cache: false
- name: Checkout code
uses: actions/checkout@v3
- name: Check go mod
run: |
go mod tidy
git diff --exit-code go.mod
golangci-lint:
runs-on: ubuntu-latest
steps:
- name: Install Go
uses: actions/setup-go@v4
with:
go-version: ${{ env.GO_VERSION }}
cache: false
- name: Checkout code
uses: actions/checkout@v3
- name: Run golangci-lint
uses: golangci/golangci-lint-action@v3.4.0
with:
version: latest


go-test:
runs-on: ubuntu-latest
steps:
- name: Install Go
uses: actions/setup-go@v4
with:
go-version: ${{ env.GO_VERSION }}
cache: false
- name: Checkout code
uses: actions/checkout@v3
# https://github.com/actions/cache/blob/main/examples.md#go---modules
Expand All @@ -59,9 +64,7 @@ jobs:
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-
- run: make test/go/plain-ci

- uses: actions/upload-artifact@v3 # upload test results
if: success() || failure() # run this step even if previous step failed
with:
Expand Down

0 comments on commit c18807a

Please sign in to comment.