-
Notifications
You must be signed in to change notification settings - Fork 6
41 lines (33 loc) · 1.29 KB
/
verifyInstall.yaml
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
# Small helper: Verify that craft project config is always valid by checking
# the install and apply CLI commands automatically after pushes to this repo
on:
push:
branches: [development, main]
# Energy saving: Don't trigger this for updated README file only
paths-ignore:
- '**/README.md'
pull_request:
branches: [development, main]
paths-ignore:
- '**/README.md'
name: verifyInstall
jobs:
verifyInstall:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
# Install DDEV via https://github.com/ddev/github-action-setup-ddev
- uses: ddev/github-action-setup-ddev@v1
# Output installed ddev version
- run: ddev -v
# Start the DDEV project, this will copy .env.example to .env
# and insert correct db connection settings for DDEV automagically
- run: ddev start
# Install dependencies
- run: ddev composer install
- run: ddev npm install
# Verify that craft installation works with dummy values
- run: ddev craft install/craft --interactive=0 --username=admin456 --password=NewPassword123 [email protected] --site-name=GitHubTest
# Verify apply CLI commands works correctly as well
- run: ddev craft project-config/diff
- run: ddev craft project-config/apply