diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..70215be --- /dev/null +++ b/.gitattributes @@ -0,0 +1,4 @@ +# Exclude files from releases/tarballs +tests/ export-ignore +.github/ export-ignore +.gitattributes export-ignore diff --git a/.github/PULL_REQUEST_TEMPLATE.md b/.github/PULL_REQUEST_TEMPLATE.md index 5d88d2a..5c5eee5 100644 --- a/.github/PULL_REQUEST_TEMPLATE.md +++ b/.github/PULL_REQUEST_TEMPLATE.md @@ -1,15 +1,19 @@ ## The Issue -- # +- Fixes #REPLACE_ME_WITH_RELATED_ISSUE_NUMBER ## How This PR Solves The Issue + + ## Manual Testing Instructions + + ```bash -ddev add-on get https://github.com///tarball/ +ddev add-on get https://github.com/ddev/ddev-phpmyadmin/tarball/refs/pull/REPLACE_ME_WITH_THIS_PR_NUMBER/head ddev restart ``` diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index bc74316..ffdc8a4 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -1,11 +1,15 @@ name: tests on: pull_request: + paths-ignore: + - "**.md" push: branches: [ main ] + paths-ignore: + - "**.md" schedule: - - cron: '01 07 * * *' + - cron: '25 08 * * *' workflow_dispatch: inputs: @@ -19,9 +23,8 @@ concurrency: group: ${{ github.workflow }}-${{ github.ref }} cancel-in-progress: true -# This is required for "gautamkrishnar/keepalive-workflow", see "ddev/github-action-add-on-test" permissions: - actions: write + contents: read jobs: tests: diff --git a/install.yaml b/install.yaml index 19de82d..482a1ca 100644 --- a/install.yaml +++ b/install.yaml @@ -13,7 +13,7 @@ pre_install_actions: exit 1 fi -ddev_version_constraint: '>= v1.24.3' +ddev_version_constraint: '>= v1.24.10' post_install_actions: - | diff --git a/tests/test.bats b/tests/test.bats index 28e9776..b7b45d2 100644 --- a/tests/test.bats +++ b/tests/test.bats @@ -58,8 +58,14 @@ health_checks() { teardown() { set -eu -o pipefail - ddev delete -Oy ${PROJNAME} >/dev/null 2>&1 - [ "${TESTDIR}" != "" ] && rm -rf ${TESTDIR} + ddev delete -Oy "${PROJNAME}" >/dev/null 2>&1 + # Persist TESTDIR if running inside GitHub Actions. Useful for uploading test result artifacts + # See example at https://github.com/ddev/github-action-add-on-test#preserving-artifacts + if [ -n "${GITHUB_ENV:-}" ]; then + [ -e "${GITHUB_ENV:-}" ] && echo "TESTDIR=${HOME}/tmp/${PROJNAME}" >> "${GITHUB_ENV}" + else + [ "${TESTDIR}" != "" ] && rm -rf "${TESTDIR}" + fi } @test "install from directory" {