mirror of
https://github.com/kemko/nomad.git
synced 2026-01-06 10:25:42 +03:00
build: use setup-golang@v3 to handle auto caching (#19707)
* wip: try on branch * build: use setup-golang@v3 to handle auto caching
This commit is contained in:
2
.github/workflows/checks.yaml
vendored
2
.github/workflows/checks.yaml
vendored
@@ -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@v2
|
||||
- uses: hashicorp/setup-golang@v3
|
||||
- name: Run make check
|
||||
run: |
|
||||
make missing
|
||||
|
||||
8
.github/workflows/test-core.yaml
vendored
8
.github/workflows/test-core.yaml
vendored
@@ -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@v2
|
||||
- uses: hashicorp/setup-golang@v3
|
||||
- name: Get Go modules
|
||||
run: |
|
||||
make bootstrap
|
||||
@@ -78,7 +78,7 @@ jobs:
|
||||
timeout-minutes: 20
|
||||
steps:
|
||||
- uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3.5.3
|
||||
- uses: hashicorp/setup-golang@v2
|
||||
- uses: hashicorp/setup-golang@v3
|
||||
- name: Run make dev
|
||||
run: |
|
||||
make bootstrap
|
||||
@@ -89,7 +89,7 @@ jobs:
|
||||
timeout-minutes: 8
|
||||
steps:
|
||||
- uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3.5.3
|
||||
- uses: hashicorp/setup-golang@v2
|
||||
- uses: hashicorp/setup-golang@v3
|
||||
- name: Run API tests
|
||||
env:
|
||||
GOTEST_MOD: api
|
||||
@@ -113,7 +113,7 @@ jobs:
|
||||
- quick
|
||||
steps:
|
||||
- uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3.5.3
|
||||
- uses: hashicorp/setup-golang@v2
|
||||
- uses: hashicorp/setup-golang@v3
|
||||
- name: Run Matrix Tests
|
||||
env:
|
||||
GOTEST_GROUP: ${{matrix.groups}}
|
||||
|
||||
4
.github/workflows/test-e2e.yml
vendored
4
.github/workflows/test-e2e.yml
vendored
@@ -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@v2
|
||||
- uses: hashicorp/setup-golang@v3
|
||||
- run: make deps
|
||||
- name: Vault Compatability
|
||||
run: make integration-test
|
||||
@@ -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@v2
|
||||
- uses: hashicorp/setup-golang@v3
|
||||
- name: Consul Compatability
|
||||
run: |
|
||||
make deps
|
||||
|
||||
Reference in New Issue
Block a user