Skip to content

Commit 7ed62c9

Browse files
committed
Add build binary to conformance tests
1 parent 5156aba commit 7ed62c9

File tree

1 file changed

+12
-5
lines changed

1 file changed

+12
-5
lines changed

.github/workflows/ci.yml

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -147,16 +147,15 @@ jobs:
147147
conformance-tests:
148148
name: Gateway Conformance Tests
149149
runs-on: ubuntu-22.04
150-
needs: [vars, binary]
150+
needs: vars
151151
steps:
152152
- name: Checkout Repository
153153
uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3.5.3
154154

155-
- name: Fetch Cached Artifacts
156-
uses: actions/cache@88522ab9f39a2ea568f7027eddc7d8d8bc9d59c8 # v3.3.1
155+
- name: Setup Golang Environment
156+
uses: actions/setup-go@fac708d6674e30b6ba41289acaab6d4b75aa0753 # v4.0.1
157157
with:
158-
path: ${{ github.workspace }}/dist
159-
key: nginx-kubernetes-gateway-${{ github.run_id }}-${{ github.run_number }}
158+
go-version-file: go.mod
160159

161160
- name: Docker Buildx
162161
uses: docker/setup-buildx-action@ecf95283f03858871ff00b787d79c419715afc34 # v2.7.0
@@ -179,6 +178,14 @@ jobs:
179178
nkg_tag=$(echo ${{ steps.meta.outputs.tags }} | cut -d ":" -f 2)
180179
make update-nkg-manifest NKG_PREFIX=${nkg_prefix} NKG_TAG=${nkg_tag}
181180
working-directory: ./conformance
181+
182+
- name: Build binary
183+
uses: goreleaser/goreleaser-action@336e29918d653399e599bfca99fadc1d7ffbc9f7 # v4.3.0
184+
with:
185+
version: latest
186+
args: ${{ startsWith(github.ref, 'refs/tags/') && 'release' || 'build --snapshot' }} --clean
187+
env:
188+
GOPATH: ${{ needs.vars.outputs.go_path }}
182189

183190
- name: Build Docker Image
184191
uses: docker/build-push-action@2eb1c1961a95fc15694676618e422e8ba1d63825 # v4.1.1

0 commit comments

Comments
 (0)