File tree Expand file tree Collapse file tree 1 file changed +29
-0
lines changed Expand file tree Collapse file tree 1 file changed +29
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : Integration
2
+
3
+ on : [push, pull_request, workflow_dispatch]
4
+
5
+ jobs :
6
+ test :
7
+ runs-on : ubuntu-latest
8
+ steps :
9
+ - uses : actions/checkout@v4
10
+
11
+ - name : Copy .env file
12
+ working-directory : .devcontainer
13
+ run : cp config/app/.env.example .env
14
+
15
+ - name : Start dev container and test
16
+ uses : devcontainers/ci@v0.3
17
+ with :
18
+ configFile : .devcontainer/devcontainer.json
19
+ runCmd : |
20
+ composer install
21
+ while ! mysqladmin ping -h"database" --silent; do
22
+ sleep 1
23
+ done
24
+ wp core install --url=http://web:8080 --title=Acorn --admin_user=admin --admin_password=admin --admin_email=admin@example.com --skip-email --allow-root
25
+ composer test tests/Integration/Routing
26
+
27
+ - name : Verify routes
28
+ run : |
29
+ curl -s http://localhost:8080/test/ | grep "Howdy"
You can’t perform that action at this time.
0 commit comments