-
-
Notifications
You must be signed in to change notification settings - Fork 129
49 lines (38 loc) · 1.22 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
41
42
43
44
45
46
47
48
49
name: Integration test
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
integration-test:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Docker compose
uses: isbang/[email protected]
with:
compose-file: './docker-compose.yml'
- name: Wait for DB to initialize
run: |
while ! docker-compose run --rm --user 33:33 wpcli wp db check; do
echo "Waiting for DB to initialize..."
sleep 1
done
echo "DB is ready"
- name: Setup WP
run: |
docker-compose run --rm --user 33:33 wpcli wp core install --url=http://localhost:8088 --title=WordPress --admin_user=admin [email protected]
- name: Activate plugin
run:
docker-compose run --rm --user 33:33 wpcli wp plugin activate jekyll-exporter
- name: Export
run: |
docker-compose run --rm --user 33:33 wpcli wp jekyll-export > export.zip
- name: Unzip
run: |
unzip export.zip -d export
- name: Verify export
run: |
cat export/sample-page.md | grep "title: 'Sample Page'"