Skip to content

Commit

Permalink
Update README with new installation command and note for older versio…
Browse files Browse the repository at this point in the history
…ns (#3)

* Update README with new installation command and note for older versions

Update the installation command and tests to use `ddev add-on get` instead of `ddev get`.

* **README.md**
  - Update the installation command to use `ddev add-on get Morgy93/ddev-deno`.
  - Add a note for older versions to use `ddev get` instead of `ddev add-on get`.

* **tests/test.bats**
  - Update the test cases to use `ddev add-on get` instead of `ddev get`.

* Update README to format note for older DDEV versions

---------

Co-authored-by: Thomas Hauschild <7961978+Morgy93@users.noreply.github.com>
  • Loading branch information
dermatz and Morgy93 authored Nov 1, 2024
1 parent 1f852ab commit 09bcaf1
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 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: [What is Deno?](https://www.youtube.com/watch?v=KPTOo4k8-GE)
## Installation

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

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

```shell
Expand Down
9 changes: 4 additions & 5 deletions tests/test.bats
Original file line number Diff line number Diff line change
Expand Up @@ -26,18 +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 09bcaf1

Please sign in to comment.