Skip to content

Commit 63376e1

Browse files
committed
feat: add testing for DDEV HEAD
1 parent 657b133 commit 63376e1

File tree

2 files changed

+19
-9
lines changed

2 files changed

+19
-9
lines changed

.github/workflows/main.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
fail-fast: false
2020
matrix:
2121
os: [ubuntu-24.04, ubuntu-24.04-arm]
22-
version: ['latest', '1.24.7']
22+
version: ['latest', 'head', '1.24.7']
2323
steps:
2424
- uses: actions/checkout@v5
2525
- uses: ./
@@ -37,7 +37,10 @@ jobs:
3737
- name: ddev stopped
3838
run: |
3939
cd tests/fixtures/ddevProj1
40-
test '"stopped"' = "$(ddev describe --json-output | jq '.raw.status')"
40+
ACTUAL_STATUS="$(ddev describe --json-output | jq -r '.raw.status')"
41+
echo "Expected: stopped"
42+
echo "Actual: ${ACTUAL_STATUS}"
43+
test 'stopped' = "${ACTUAL_STATUS}"
4144
- name: start ddev
4245
run: |
4346
cd tests/fixtures/ddevProj1

action.yml

Lines changed: 14 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -29,19 +29,26 @@ runs:
2929
- name: Download DDEV install script
3030
shell: bash
3131
run: |
32-
curl -fsSL --retry 3 --retry-max-time 60 --retry-connrefused \
33-
-o /tmp/install_ddev.sh \
34-
"${{ inputs.installScriptUrl }}"
32+
if [[ '${{ inputs.version }}' == 'head' && '${{ inputs.installScriptUrl }}' == 'https://ddev.com/install.sh' ]]; then
33+
SCRIPT_URL="https://raw.githubusercontent.com/ddev/ddev/main/scripts/install_ddev_head.sh"
34+
echo "Using head version install script: ${SCRIPT_URL}"
35+
else
36+
SCRIPT_URL="${{ inputs.installScriptUrl }}"
37+
fi
38+
curl -fsSL --retry 3 --retry-max-time 60 --retry-connrefused -o /tmp/install_ddev.sh "${SCRIPT_URL}"
3539
3640
- name: Install DDEV
3741
shell: bash
3842
run: |
39-
if [[ '${{ inputs.version }}' != 'latest' ]]; then
43+
if [[ '${{ inputs.version }}' == 'latest' ]]; then
44+
VERSION_ARG=""
45+
echo "Installing latest stable DDEV version"
46+
elif [[ '${{ inputs.version }}' == 'head' ]]; then
47+
VERSION_ARG=""
48+
echo "Installing DDEV HEAD version"
49+
else
4050
VERSION_ARG="v${{ inputs.version }}"
4151
echo "Installing DDEV version: ${VERSION_ARG}"
42-
else
43-
VERSION_ARG=""
44-
echo "Installing latest DDEV version"
4552
fi
4653
4754
# Make installation script executable

0 commit comments

Comments
 (0)