Skip to content

Commit

Permalink
actions workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
retlehs committed Dec 17, 2024
1 parent 7bf5f6b commit 8734830
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/integration.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Integration

on: [push, pull_request, workflow_dispatch]

jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Copy .env file
working-directory: .devcontainer
run: cp config/app/.env.example .env

- name: Start dev container and test
uses: devcontainers/[email protected]
with:
configFile: .devcontainer/devcontainer.json
runCmd: |
composer install
while ! mysqladmin ping -h"database" --silent; do
sleep 1
done
wp core install --url=http://web:8080 --title=Acorn --admin_user=admin --admin_password=admin [email protected] --skip-email --allow-root
composer test tests/Integration/Routing
- name: Verify routes
run: |
curl -s http://localhost:8080/test/ | grep "Howdy"

0 comments on commit 8734830

Please sign in to comment.