Skip to content

Commit

Permalink
set cache:false for setup-go
Browse files Browse the repository at this point in the history
  • Loading branch information
alvin-huang committed May 7, 2024
1 parent c7c699c commit 241c843
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 6 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,13 @@ name: Test
on:
push:
paths:
- '**'
- '!**.md'
- '!dev/**'
- '!verify/**'
- '!action.yml'
- "**"
- "!**.md"
- "!dev/**"
- "!verify/**"
- "!action.yml"

jobs:

lint:
runs-on: ubuntu-latest
steps:
Expand All @@ -23,4 +22,5 @@ jobs:
- uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491 # v5.0.0
with:
go-version-file: go.mod
cache: false
- run: make test/go
3 changes: 3 additions & 0 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ runs:
- uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491 # v5.0.0
with:
go-version: 1.18
cache: false

- name: Action Setup
shell: bash
Expand All @@ -93,6 +94,8 @@ runs:
- uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491 # v5.0.0
with:
go-version: ${{ inputs.go_version }}
cache: false


# Read config.
- name: Read config from inputs; export to GITHUB_ENV
Expand Down
2 changes: 2 additions & 0 deletions verify/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ runs:
- uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491 # v5.0.0
with:
go-version: 1.18
cache: false

- name: Action Setup
shell: bash
Expand Down Expand Up @@ -77,6 +78,7 @@ runs:
- uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491 # v5.0.0
with:
go-version: ${{ env.GO_VERSION }}
cache: false

# Verify Reproducibility
- name: Verify Reproducibility
Expand Down

0 comments on commit 241c843

Please sign in to comment.