Skip to content

Commit

Permalink
feat: tear down volume to avoid flaky integration test result
Browse files Browse the repository at this point in the history
# Summary
Tear down the volume to prevent unintended database reuse.
  • Loading branch information
canzhen authored Dec 21, 2023
2 parents dba7d30 + 00ff112 commit 5e31341
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions integration-test/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,12 @@ runs:
DOCKER_BUILDKIT: "1"
GITHUB_TOKEN: ${{ inputs.github-token }}
run: |
docker-compose -f ${{ inputs.docker-compose-file }} up --build --exit-code-from test ${{ inputs.full-compose-output == 'false' && 'test' || '' }}
docker compose down -v -f ${{ inputs.docker-compose-file }} \
&& docker compose -f ${{ inputs.docker-compose-file }} up --build --exit-code-from test ${{ inputs.full-compose-output == 'false' && 'test' || '' }}
echo '::set-output name=docker_up::true'
- name: Cleanup
if: ${{ steps.build.outputs.docker_up }}
shell: bash
env:
DOCKER_BUILDKIT: "1"
run: docker-compose down
run: docker compose down -v -f ${{ inputs.docker-compose-file }}

0 comments on commit 5e31341

Please sign in to comment.