-
-
Notifications
You must be signed in to change notification settings - Fork 95
40 lines (34 loc) · 1.24 KB
/
integration.yml
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
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: |
cd /roots/app
composer install
# ???
composer remove roots/acorn
composer require roots/acorn --no-interaction
composer require --dev nunomaduro/collision
composer require --dev spatie/laravel-ignition
# ???
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
wp acorn optimize:clear
cd /roots/acorn
composer install
composer run-script test tests/Integration/Routing
- name: Verify routes
run: |
curl -s http://localhost:8080/test/ | grep "Howdy"