File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ # Exclude files from releases/tarballs
2+ tests / export-ignore
3+ .github / export-ignore
4+ .gitattributes export-ignore
Original file line number Diff line number Diff line change 1+
12## The Issue
23
3- - #< issue number >
4+ - Fixes #REPLACE_ME_WITH_RELATED_ISSUE_NUMBER
45
56<!-- Provide a brief description of the issue. -->
67
78## How This PR Solves The Issue
89
10+ <!-- Describe the key change(s) in this PR that address the issue above. -->
11+
912## Manual Testing Instructions
1013
14+ <!-- If this PR changes logic, consider adding additional steps or context to the instructions below. -->
15+
1116``` bash
12- ddev add-on get https://github.com/< user > / < repo > /tarball/< branch >
17+ ddev add-on get https://github.com/ddev/ddev-adminer /tarball/refs/pull/REPLACE_ME_WITH_THIS_PR_NUMBER/head
1318ddev restart
1419```
1520
Original file line number Diff line number Diff line change 11name : tests
22on :
33 pull_request :
4+ paths-ignore :
5+ - " **.md"
46 push :
57 branches : [ main ]
8+ paths-ignore :
9+ - " **.md"
610
711 schedule :
8- - cron : ' 25 08 * * *'
12+ - cron : ' 25 08 * * *'
913
1014 workflow_dispatch :
1115 inputs :
@@ -19,9 +23,8 @@ concurrency:
1923 group : ${{ github.workflow }}-${{ github.ref }}
2024 cancel-in-progress : true
2125
22- # This is required for "gautamkrishnar/keepalive-workflow", see "ddev/github-action-add-on-test"
2326permissions :
24- actions : write
27+ contents : read
2528
2629jobs :
2730 tests :
Original file line number Diff line number Diff line change @@ -7,7 +7,6 @@ project_files:
77
88pre_install_actions :
99 - |
10- #ddev-nodisplay
1110 #ddev-description:Removing old adminer files
1211 has_old_files=false
1312 for file in "${DDEV_APPROOT}/.ddev/adminer/Dockerfile" "${DDEV_APPROOT}/.ddev/adminer/ddev-login.php"; do
@@ -25,14 +24,13 @@ pre_install_actions:
2524 exit 2
2625 fi
2726 - |
28- #ddev-nodisplay
2927 #ddev-description:Check for db service
30- if ddev debug configyaml 2>/dev/null | grep omit_containers | grep -q db; then
28+ if ddev utility configyaml 2>/dev/null | grep omit_containers | grep -q db; then
3129 echo "Unable to install the add-on because no db service was found"
3230 exit 3
3331 fi
3432
35- ddev_version_constraint : ' >= v1.24.3 '
33+ ddev_version_constraint : ' >= v1.24.10 '
3634
3735post_install_actions :
3836 - |
Original file line number Diff line number Diff line change @@ -53,8 +53,14 @@ health_checks() {
5353
5454teardown () {
5555 set -eu -o pipefail
56- ddev delete -Oy ${PROJNAME} > /dev/null 2>&1
57- [ " ${TESTDIR} " != " " ] && rm -rf ${TESTDIR}
56+ ddev delete -Oy " ${PROJNAME} " > /dev/null 2>&1
57+ # Persist TESTDIR if running inside GitHub Actions. Useful for uploading test result artifacts
58+ # See example at https://github.com/ddev/github-action-add-on-test#preserving-artifacts
59+ if [ -n " ${GITHUB_ENV:- } " ]; then
60+ [ -e " ${GITHUB_ENV:- } " ] && echo " TESTDIR=${HOME} /tmp/${PROJNAME} " >> " ${GITHUB_ENV} "
61+ else
62+ [ " ${TESTDIR} " != " " ] && rm -rf " ${TESTDIR} "
63+ fi
5864}
5965
6066@test " install from directory" {
You can’t perform that action at this time.
0 commit comments