We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5e8a91c commit 6e5c998Copy full SHA for 6e5c998
tests/test.bats
@@ -55,7 +55,13 @@ health_checks() {
55
teardown() {
56
set -eu -o pipefail
57
ddev delete -Oy ${PROJNAME} >/dev/null 2>&1
58
- [ "${TESTDIR}" != "" ] && rm -rf ${TESTDIR}
+ # Persist TESTDIR if running inside GitHub Actions. Useful for uploading test result artifacts
59
+ # See example at https://github.com/ddev/github-action-add-on-test#preserving-artifacts
60
+ if [ -n "${GITHUB_ENV:-}" ]; then
61
+ echo "TESTDIR=${TESTDIR}" >> "${GITHUB_ENV}"
62
+ else
63
+ [ "${TESTDIR}" != "" ] && rm -rf "${TESTDIR}"
64
+ fi
65
}
66
67
@test "install from directory" {
0 commit comments