Skip to content

Commit

Permalink
fix: improve smoke test checkout (#3415)
Browse files Browse the repository at this point in the history
  • Loading branch information
stuartwdouglas authored Nov 18, 2024
1 parent d2c68b8 commit fb68f07
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 9 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -353,6 +353,12 @@ jobs:
fail-fast: false
matrix: ${{fromJson(needs.infrastructure-shard.outputs.matrix)}}
steps:
- name: Free Disk Space (Ubuntu)
uses: jlumbroso/free-disk-space@main
with:
# this might remove tools that are actually needed,
# if set to "true" but frees about 6 GB
tool-cache: false
- name: Checkout code
uses: actions/checkout@v4
- name: Init Hermit
Expand Down
13 changes: 4 additions & 9 deletions .github/workflows/smoketest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,7 @@ jobs:
echo "Latest release: $latest_release"
echo "LATEST_VERSION=${latest_release#v}" >> "$GITHUB_ENV"
- name: Check out the last tagged release
uses: actions/checkout@v4
with:
ref: v${{ env.LATEST_VERSION }}
fetch-depth: 1
fetch-tags: true
run: git checkout v${{ env.LATEST_VERSION }}
- name: Init Hermit
uses: cashapp/activate-hermit@v1
- name: Build Cache
Expand All @@ -56,10 +52,9 @@ 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
uses: actions/checkout@v4
with:
ref: ${{ github.head_ref }}
fetch-depth: 1
env:
HEAD_REF: ${{ github.head_ref }}
run: git checkout "$HEAD_REF"
- name: Init Hermit
uses: cashapp/activate-hermit@v1
- name: Build Language Plugins
Expand Down

0 comments on commit fb68f07

Please sign in to comment.