Skip to content

Commit 3cdd905

Browse files
authored
Fix conformance tests using cached binary (#1914)
1 parent 0b0f711 commit 3cdd905

File tree

1 file changed

+15
-4
lines changed

1 file changed

+15
-4
lines changed

.github/workflows/conformance.yml

Lines changed: 15 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,11 +30,13 @@ jobs:
3030
- name: Checkout Repository
3131
uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4.1.4
3232

33-
- name: Fetch Cached Artifacts
34-
uses: actions/cache@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9 # v4.0.2
33+
- name: Setup Golang Environment
34+
uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491 # v5.0.0
3535
with:
36-
path: ${{ github.workspace }}/dist
37-
key: nginx-gateway-fabric-${{ github.run_id }}-${{ github.run_number }}
36+
go-version: stable
37+
38+
- name: Set GOPATH
39+
run: echo "GOPATH=$(go env GOPATH)" >> $GITHUB_ENV
3840

3941
- name: Docker Buildx
4042
uses: docker/setup-buildx-action@d70bba72b1f3fd22344832f00baa16ece964efeb # v3.3.0
@@ -72,6 +74,15 @@ jobs:
7274
make update-ngf-manifest${{ inputs.image == 'plus' && '-with-plus' || ''}} PREFIX=${ngf_prefix} TAG=${ngf_tag}
7375
working-directory: ./conformance
7476

77+
- name: Build binary
78+
uses: goreleaser/goreleaser-action@7ec5c2b0c6cdda6e8bbb49444bc797dd33d74dd8 # v5.0.0
79+
with:
80+
version: latest
81+
args: build --snapshot --clean
82+
env:
83+
TELEMETRY_ENDPOINT: "" # disables sending telemetry
84+
TELEMETRY_ENDPOINT_INSECURE: "false"
85+
7586
- name: Build NGF Docker Image
7687
uses: docker/build-push-action@2cdde995de11925a030ce8070c3d77a52ffcf1c0 # v5.3.0
7788
with:

0 commit comments

Comments
 (0)