Skip to content

Commit 8734830

Browse files
committed
actions workflow
1 parent 7bf5f6b commit 8734830

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

.github/workflows/integration.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
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"

0 commit comments

Comments
 (0)