-
-
Notifications
You must be signed in to change notification settings - Fork 15
78 lines (67 loc) · 2.22 KB
/
Copy pathmain.yml
File metadata and controls
78 lines (67 loc) · 2.22 KB
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
name: tests
on:
pull_request:
paths-ignore:
- "**.md"
push:
branches: [ main ]
paths-ignore:
- "**.md"
workflow_dispatch:
inputs:
debug_enabled:
description: 'Run the build with tmate set "debug_enabled"'
type: boolean
required: false
default: false
schedule:
- cron: 0 0 * * *
jobs:
test:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-24.04, ubuntu-24.04-arm]
version: ['latest', 'head', '1.24.8']
steps:
- uses: actions/checkout@v5
- uses: ./
with:
ddevDir: tests/fixtures/ddevProj1
autostart: false
version: ${{ matrix.version }}
- name: Setup tmate session
if: ${{ github.event_name == 'workflow_dispatch' && inputs.debug_enabled }}
uses: mxschmitt/action-tmate@v3
with:
limit-access-to-actor: true
- name: ddev version
run: |
ddev --version
if [[ ${{ matrix.version }} == '1.24.8' ]]; then
test "$(ddev --version)" == 'ddev version v1.24.8'
else
test "$(ddev --version)" != 'ddev version v1.24.8'
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: Mailpit 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)"
- name: restart ddev with project_tld=test
run: |
cd tests/fixtures/ddevProj1
ddev config --project-tld=test
ddev restart --json-output --skip-confirmation
- name: Mailpit reachable
run: curl --silent --dump-header - --output /dev/null https://setup-ddev-proj1.test:8026
- name: "index.html: expected output"
run: test 'index.html test output' = "$(curl --silent https://setup-ddev-proj1.test)"