Skip to content

Commit

Permalink
Install correct addon in tests, but skip during pull requests
Browse files Browse the repository at this point in the history
  • Loading branch information
martin-helmich committed Feb 19, 2024
1 parent 07c3cca commit d9b984f
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion tests/test.bats
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,14 @@ teardown() {

@test "install from release" {
set -eu -o pipefail

if [[ "${GITHUB_EVENT_NAME}" == "pull_request" ]] ; then
skip "skipping 'install from release' in pull request pipelines"
fi

cd ${TESTDIR} || ( printf "unable to cd to ${TESTDIR}\n" && exit 1 )
echo "# ddev get ddev/ddev-addon-template with project ${PROJNAME} in ${TESTDIR} ($(pwd))" >&3
ddev get ddev/ddev-addon-template
ddev get mittwald/ddev
ddev restart >/dev/null
health_checks
}
Expand Down

0 comments on commit d9b984f

Please sign in to comment.