Skip to content

Commit

Permalink
test against previous release, remove tmp smoke test
Browse files Browse the repository at this point in the history
  • Loading branch information
safeer committed Oct 7, 2024
1 parent dd83c37 commit e85eb74
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 36 deletions.
15 changes: 5 additions & 10 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -381,8 +381,9 @@ jobs:
fetch-tags: true
- name: Get latest release tag
# TODO switch to: latest_release=$(git tag --sort=-v:refname | grep -v v1 | head -n 1)
# latest_release=$(git rev-parse HEAD^)
run: |
latest_release=$(git rev-parse HEAD^)
latest_release=$(git tag --sort=-v:refname | grep -v v1 | head -n 1)
echo "Latest release: $latest_release"
echo "LATEST_RELEASE=$latest_release" >> "$GITHUB_ENV"
- name: Check out exemplar from previous release
Expand Down Expand Up @@ -412,15 +413,9 @@ jobs:
run: |
set -euo pipefail
echo "Replacing current exemplar with latest released exemplar"
rm -r ./smoketest && mv ./tmpsmoketest/smoketest ./smoketest
echo "List all files in ."
ls -la ./
echo "List all files in tmpsmoketest"
ls -la ./tmpsmoketest/
echo "List smoke test files"
git grep -l '^//go:build smoketest' | xargs -I {} dirname {} || true
echo "Run smoke test"
go test -v -tags smoketest -run '^Test' ./smoketest
rm -r ./smoketest && mv ./tmpsmoketest/smoketest ./smoketest && rm -r ./tmpsmoketest
echo "Running smoke test"
go test -v -tags integration -run '^Test' ./smoketest
# run: |
# test_files=$(git grep -l '^//go:build smoketest' | xargs -I {} dirname {} || true)
# echo "Smoke test files: $test_files"
Expand Down
26 changes: 0 additions & 26 deletions smoketest/exemplar_smoke_test.go

This file was deleted.

File renamed without changes.

0 comments on commit e85eb74

Please sign in to comment.