Skip to content

Commit

Permalink
Do not delete test data in github action
Browse files Browse the repository at this point in the history
  • Loading branch information
cmuench authored Jun 18, 2024
1 parent 98162a4 commit ca7e8d6
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion tests/test.bats
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,11 @@ teardown() {
cd ${TESTDIR} || ( printf "unable to cd to ${TESTDIR}\n" && exit 1 )
ddev stop ${PROJNAME}
ddev delete -Oy ${PROJNAME} >/dev/null 2>&1
[ "${TESTDIR}" != "" ] && rm -rf ${TESTDIR}
if [ "${GITHUB_ACTIONS:-false}" != "true" ]; then
[ "${TESTDIR}" != "" ] && rm -rf ${TESTDIR}
else
echo "Running in GitHub Actions context, skipping deletion of test data"
fi
}

@test "install from directory" {
Expand Down

0 comments on commit ca7e8d6

Please sign in to comment.