-
-
Notifications
You must be signed in to change notification settings - Fork 7
37 lines (36 loc) · 1.22 KB
/
main.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
on: [push, pull_request, workflow_dispatch]
name: tests
jobs:
test:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-20.04, ubuntu-22.04]
version: ['latest', '1.22.3']
steps:
- uses: actions/checkout@v4
- uses: ./
with:
ddevDir: tests/fixtures/ddevProj1
autostart: false
version: ${{ matrix.version }}
- name: ddev version
run: |
if [[ ${{ matrix.version }} == '1.22.3' ]]; then
test "$(ddev --version)" == 'ddev version v1.22.3'
else
test "$(ddev --version)" != 'ddev version v1.22.3'
fi
- name: ddev stopped
run: |
cd tests/fixtures/ddevProj1
test '"stopped"' = "$(ddev describe --json-output | jq '.raw.status')"
- name: start ddev
run: |
cd tests/fixtures/ddevProj1
ddev start --json-output --skip-confirmation
- name: Mailhog reachable
run: curl --silent --dump-header - --output /dev/null https://setup-ddev-proj1.ddev.site:8026
- name: "index.html: expected output"
run: test 'index.html test output' = "$(curl --silent https://setup-ddev-proj1.ddev.site)"