Skip to content

Commit

Permalink
update installation instructions and tests to use 'ddev add-on get' (#6)
Browse files Browse the repository at this point in the history
  • Loading branch information
Morgy93 authored Nov 1, 2024
1 parent 0f47254 commit 19a5ef7
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,13 @@ YouTube: [Bun 1.0 is here](https://www.youtube.com/watch?v=BsnCpESUEqM)
## Installation

```shell
ddev get Morgy93/ddev-bun
ddev add-on get Morgy93/ddev-bun
ddev restart
```

> [!NOTE]
> For DDEV versions prior to v1.23.5, use `ddev get` instead of `ddev add-on get`.
## Usage

```shell
Expand Down
8 changes: 4 additions & 4 deletions tests/test.bats
Original file line number Diff line number Diff line change
Expand Up @@ -26,17 +26,17 @@ teardown() {
@test "install from directory" {
set -eu -o pipefail
cd ${TESTDIR}
echo "# ddev get ${DIR} with project ${PROJNAME} in ${TESTDIR} ($(pwd))" >&3
ddev get ${DIR}
echo "# ddev add-on get ${DIR} with project ${PROJNAME} in ${TESTDIR} ($(pwd))" >&3
ddev add-on get ${DIR}
ddev restart
health_checks
}

@test "install from release" {
set -eu -o pipefail
cd ${TESTDIR} || ( printf "unable to cd to ${TESTDIR}\n" && exit 1 )
echo "# ddev get ${DDEV_ADDON} with project ${PROJNAME} in ${TESTDIR} ($(pwd))" >&3
ddev get ${DDEV_ADDON}
echo "# ddev add-on get ${DDEV_ADDON} with project ${PROJNAME} in ${TESTDIR} ($(pwd))" >&3
ddev add-on get ${DDEV_ADDON}
ddev restart >/dev/null
health_checks
}

0 comments on commit 19a5ef7

Please sign in to comment.