diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..46f79a3 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,5 @@ +# Exclude files from releases/tarballs +tests/ export-ignore +.github/ export-ignore +.gitattributes export-ignore +.githooks/ export-ignore diff --git a/.github/PULL_REQUEST_TEMPLATE.md b/.github/PULL_REQUEST_TEMPLATE.md index 5d88d2a..e6279ff 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-redis-commander/tarball/refs/pull/REPLACE_ME_WITH_THIS_PR_NUMBER/head ddev restart ``` diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 0016727..ac26c69 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -36,7 +36,7 @@ jobs: - name: Check version ${{ env.VERSION_NUMBER }} consistency in files # Check CHANGELOG.md run: | - + # Check top ## [VERSION_NUMBER](GITHUB_URL/releases/tag/VERSION_NUMBER) - yyyy-mm-dd in CHANGELOG.md CURRENT_DATE=$(date +'%Y-%m-%d') echo $CURRENT_DATE @@ -49,7 +49,7 @@ jobs: echo "CHANGELOG VERSION KO" exit 1 fi - + # Check top [_Compare with previous release_](GITHUB_URL/compare/LAST_TAG...VERSION_NUMBER) in CHANGELOG.md COMPARISON=$(grep -oP "$GITHUB_SERVER_URL/$GITHUB_REPOSITORY/compare/\K(.*)$" CHANGELOG.md | head -1) LAST_TAG=$(curl -Ls -o /dev/null -w %{url_effective} $GITHUB_SERVER_URL/$GITHUB_REPOSITORY/releases/latest | grep -oP "\/tag\/\K(.*)$") diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 19ddfe5..aeadf54 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -1,10 +1,12 @@ name: tests on: pull_request: + paths-ignore: + - "**.md" push: branches: [ main ] paths-ignore: - - '**.md' + - "**.md" schedule: - cron: '06 07 * * *' diff --git a/README.md b/README.md index f651c3a..7cc797c 100644 --- a/README.md +++ b/README.md @@ -3,7 +3,17 @@ [![last commit](https://img.shields.io/github/last-commit/ddev/ddev-redis-commander)](https://github.com/ddev/ddev-redis-commander/commits) [![release](https://img.shields.io/github/v/release/ddev/ddev-redis-commander)](https://github.com/ddev/ddev-redis-commander/releases/latest) -## Redis Commander +## Redis Commander (archived) + +This add-on has been archived and is no longer actively maintained. + +Use the [ddev/ddev-redis-insight](https://github.com/ddev/ddev-redis-insight) add-on instead, which provides a more modern and feature-rich interface for managing Redis databases: + +```bash +ddev add-on remove ddev/ddev-redis-commander +ddev add-on get ddev/ddev-redis-insight +ddev restart +``` ## Overview diff --git a/install.yaml b/install.yaml index a722493..28a62e5 100644 --- a/install.yaml +++ b/install.yaml @@ -8,7 +8,7 @@ project_files: - docker-compose.redis-commander_norouter.yaml - commands/host/redis-commander -ddev_version_constraint: '>= v1.24.3' +ddev_version_constraint: '>= v1.24.10' post_install_actions: - | @@ -23,6 +23,8 @@ post_install_actions: fi - | echo "You can now use 'ddev redis-commander' to launch Redis Commander UI" + echo "" + echo "⚠️ This add-on is no longer maintained, use https://github.com/ddev/ddev-redis-insight instead." removal_actions: - | diff --git a/tests/test.bats b/tests/test.bats index 6cf5d66..f096514 100644 --- a/tests/test.bats +++ b/tests/test.bats @@ -75,8 +75,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" {