Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: smoke tests fixes #3424

Merged
merged 1 commit into from
Nov 19, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 2 additions & 5 deletions .github/workflows/smoketest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,18 +19,17 @@ 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
run: |
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
Expand All @@ -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
Expand Down
Loading