Skip to content

Commit

Permalink
[Core] Wrap smoke clean in bash (#1226)
Browse files Browse the repository at this point in the history
  • Loading branch information
erikzaadi authored Dec 12, 2024
1 parent 07e5fc1 commit aed56f2
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 8 deletions.
9 changes: 1 addition & 8 deletions .github/workflows/perf-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -108,14 +108,7 @@ jobs:
SMOKE_TEST_SUFFIX: ${{ github.run_id }}
MOCK_PORT_API: ${{ inputs.mock_port_api && '1' || '0' }}
run: |
if [[ "${MOCK_PORT_API}" = "1" ]]; then
make smoke/start-mock-api
make smoke/clean
make smoke/stop-mock-api
else
make smoke/clean
fi
./scripts/clean-smoke-test.sh
- name: Publish Performance Test Summary
run: |
cat ./perf-test-results-${{ github.run_id }}.log.md >> ${GITHUB_STEP_SUMMARY}
15 changes: 15 additions & 0 deletions scripts/clean-smoke-test.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
#!/usr/bin/env bash

SCRIPT_BASE="$(cd -P "$(dirname "$0")" && pwd)"
ROOT_DIR="$(cd -P "${SCRIPT_BASE}/../" && pwd)"


cd "${ROOT_DIR}" || exit 1

if [[ "${MOCK_PORT_API}" = "1" ]]; then
make smoke/start-mock-api
make smoke/clean
make smoke/stop-mock-api
else
make smoke/clean
fi

0 comments on commit aed56f2

Please sign in to comment.