Skip to content

Commit

Permalink
build: use setup-golang@v3 to handle auto caching (#19707) (#19708)
Browse files Browse the repository at this point in the history
(manual cherry-pick of 0c08f94)

* wip: try on branch

* build: use setup-golang@v3 to handle auto caching

Co-authored-by: Seth Hoenig <shoenig@duck.com>
  • Loading branch information
hc-github-team-nomad-core and shoenig authored Jan 11, 2024
1 parent 0b4cc93 commit 5772ed6
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/checks.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ jobs:
- name: Git config token
if: endsWith(github.repository, '-enterprise')
run: git config --global url.'https://${{ env.ELEVATED_GITHUB_TOKEN }}@github.com'.insteadOf 'https://github.com'
- uses: hashicorp/setup-golang@v1
- uses: hashicorp/setup-golang@v3
- name: Run make check
run: |
make missing
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/test-core.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ jobs:
- name: Git config token
if: endsWith(github.repository, '-enterprise')
run: git config --global url.'https://${{ env.ELEVATED_GITHUB_TOKEN }}@github.com'.insteadOf 'https://github.com'
- uses: hashicorp/setup-golang@v1
- uses: hashicorp/setup-golang@v3
- name: Get Go modules
run: |
make bootstrap
Expand All @@ -78,7 +78,7 @@ jobs:
timeout-minutes: 20
steps:
- uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3.5.3
- uses: hashicorp/setup-golang@v1
- uses: hashicorp/setup-golang@v3
- name: Run make dev
run: |
make bootstrap
Expand All @@ -89,7 +89,7 @@ jobs:
timeout-minutes: 8
steps:
- uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3.5.3
- uses: hashicorp/setup-golang@v1
- uses: hashicorp/setup-golang@v3
- name: Run API tests
env:
GOTEST_MOD: api
Expand All @@ -113,7 +113,7 @@ jobs:
- quick
steps:
- uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3.5.3
- uses: hashicorp/setup-golang@v1
- uses: hashicorp/setup-golang@v3
- name: Run Matrix Tests
env:
GOTEST_GROUP: ${{matrix.groups}}
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/test-e2e.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ jobs:
- name: Git config token
if: endsWith(github.repository, '-enterprise')
run: git config --global url.'https://${{ env.ELEVATED_GITHUB_TOKEN }}@github.com'.insteadOf 'https://github.com'
- uses: hashicorp/setup-golang@v1
- uses: hashicorp/setup-golang@v3
- run: make deps
- name: Vault Compatability
run: make integration-test
Expand All @@ -59,7 +59,7 @@ jobs:
- name: Git config token
if: endsWith(github.repository, '-enterprise')
run: git config --global url.'https://${{ secrets.ELEVATED_GITHUB_TOKEN }}@github.com'.insteadOf 'https://github.com'
- uses: hashicorp/setup-golang@v1
- uses: hashicorp/setup-golang@v3
- name: Consul Compatability
run: |
make deps
Expand Down

0 comments on commit 5772ed6

Please sign in to comment.