From d2052a909007dd711b391eb13f2a37bece0095d5 Mon Sep 17 00:00:00 2001 From: Luca Comellini Date: Wed, 1 May 2024 10:41:43 -0700 Subject: [PATCH] Fix conformance tests using cached binary --- .github/workflows/conformance.yml | 19 +++++++++++++++---- 1 file changed, 15 insertions(+), 4 deletions(-) diff --git a/.github/workflows/conformance.yml b/.github/workflows/conformance.yml index 983e070b4b..6de149fc21 100644 --- a/.github/workflows/conformance.yml +++ b/.github/workflows/conformance.yml @@ -30,11 +30,13 @@ jobs: - name: Checkout Repository uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4.1.4 - - name: Fetch Cached Artifacts - uses: actions/cache@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9 # v4.0.2 + - name: Setup Golang Environment + uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491 # v5.0.0 with: - path: ${{ github.workspace }}/dist - key: nginx-gateway-fabric-${{ github.run_id }}-${{ github.run_number }} + go-version: stable + + - name: Set GOPATH + run: echo "GOPATH=$(go env GOPATH)" >> $GITHUB_ENV - name: Docker Buildx uses: docker/setup-buildx-action@d70bba72b1f3fd22344832f00baa16ece964efeb # v3.3.0 @@ -72,6 +74,15 @@ jobs: make update-ngf-manifest${{ inputs.image == 'plus' && '-with-plus' || ''}} PREFIX=${ngf_prefix} TAG=${ngf_tag} working-directory: ./conformance + - name: Build binary + uses: goreleaser/goreleaser-action@7ec5c2b0c6cdda6e8bbb49444bc797dd33d74dd8 # v5.0.0 + with: + version: latest + args: build --snapshot --clean + env: + TELEMETRY_ENDPOINT: "" # disables sending telemetry + TELEMETRY_ENDPOINT_INSECURE: "false" + - name: Build NGF Docker Image uses: docker/build-push-action@2cdde995de11925a030ce8070c3d77a52ffcf1c0 # v5.3.0 with: