80
80
runs-on : ${{ fromJSON(needs.setup.outputs.compute-large) }}
81
81
needs :
82
82
- setup
83
- - get-go-version
84
83
- dev-build
85
84
permissions :
86
85
id-token : write # NOTE: this permission is explicitly required for Vault auth.
95
94
repository : hashicorp/nomad
96
95
ref : ${{ matrix.nomad-version }}
97
96
98
- - name : Install Go (Nomad build)
97
+ - name : Install Go
99
98
uses : actions/setup-go@fac708d6674e30b6ba41289acaab6d4b75aa0753 # v4.0.1
100
99
with :
101
100
# Do not explicitly set Go version here, as it should depend on what Nomad declares.
@@ -114,11 +113,6 @@ jobs:
114
113
- name : Make Nomad dev build
115
114
run : make pkg/linux_amd64/nomad
116
115
117
- - name : Install Go (Consul tests)
118
- uses : actions/setup-go@fac708d6674e30b6ba41289acaab6d4b75aa0753 # v4.0.1
119
- with :
120
- go-version : ${{ needs.get-go-version.outputs.go-version }}
121
-
122
116
- name : Run integration tests
123
117
run : |
124
118
go install gotest.tools/gotestsum@v${{env.GOTESTSUM_VERSION}} && \
@@ -183,17 +177,18 @@ jobs:
183
177
if : ${{ endsWith(github.repository, '-enterprise') }}
184
178
run : git config --global url."https://${{ secrets.ELEVATED_GITHUB_TOKEN }}:@github.com".insteadOf "https://github.com"
185
179
180
+ - uses : actions/setup-go@fac708d6674e30b6ba41289acaab6d4b75aa0753 # v4.0.1
181
+ with :
182
+ # We use the current Consul Go version here since Vault is installed as a binary
183
+ # and tests are run from the Consul repo.
184
+ go-version : ${{ needs.get-go-version.outputs.go-version }}
185
+
186
186
- name : Install Vault
187
187
run : |
188
188
wget -q -O /tmp/vault.zip "https://releases.hashicorp.com/vault/${{ env.VAULT_BINARY_VERSION }}/vault_${{ env.VAULT_BINARY_VERSION }}_linux_amd64.zip"
189
189
unzip -d /tmp /tmp/vault.zip
190
190
echo "/tmp" >> $GITHUB_PATH
191
191
192
- - name : Install Go (Consul tests)
193
- uses : actions/setup-go@fac708d6674e30b6ba41289acaab6d4b75aa0753 # v4.0.1
194
- with :
195
- go-version : ${{ needs.get-go-version.outputs.go-version }}
196
-
197
192
- name : Run Connect CA Provider Tests
198
193
run : |
199
194
mkdir -p "${{ env.TEST_RESULTS_DIR }}"
0 commit comments