From 38772b6d46d128e9c2a936c1cabebbe32bb3a1b5 Mon Sep 17 00:00:00 2001 From: Stuart Douglas Date: Tue, 19 Nov 2024 09:44:57 +1100 Subject: [PATCH] fix: smoke tests fixes --- .github/workflows/smoketest.yml | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/.github/workflows/smoketest.yml b/.github/workflows/smoketest.yml index b2057b8edd..07d4327a7d 100644 --- a/.github/workflows/smoketest.yml +++ b/.github/workflows/smoketest.yml @@ -19,11 +19,9 @@ jobs: # this might remove tools that are actually needed, # if set to "true" but frees about 6 GB tool-cache: false - - name: Checkout the repository with full history uses: actions/checkout@v4 with: - ref: ${{ github.head_ref }} fetch-depth: 0 fetch-tags: true - name: Get last tagged release @@ -31,6 +29,7 @@ jobs: latest_release=$(git tag --sort=-v:refname | grep -v v1 | head -n 1) echo "Latest release: $latest_release" echo "LATEST_VERSION=${latest_release#v}" >> "$GITHUB_ENV" + echo "CURRENT_COMMIT=$(git rev-parse HEAD)" >> "$GITHUB_ENV" - name: Check out the last tagged release run: git checkout v${{ env.LATEST_VERSION }} - name: Init Hermit @@ -52,9 +51,7 @@ jobs: echo "Running smoke test on the tagged release images" SKIP_KUBE_FULL_DEPLOY=true go test -v -timeout 15m -tags smoketest -run '^Test' ./smoketest - name: Check out HEAD of the current branch - env: - HEAD_REF: ${{ github.head_ref }} - run: git checkout "$HEAD_REF" + run: git checkout "$CURRENT_COMMIT" - name: Init Hermit uses: cashapp/activate-hermit@v1 - name: Build Language Plugins