Skip to content

Commit ed61872

Browse files
test
1 parent d04161f commit ed61872

File tree

1 file changed

+14
-28
lines changed

1 file changed

+14
-28
lines changed

.github/workflows/quick-start.yml

+14-28
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,18 @@
11
name: quick-start
22

3-
on: [push]
3+
on:
4+
push:
5+
branches:
6+
- '**'
7+
paths:
8+
- '**.py'
9+
- '**.yml'
10+
pull_request:
11+
paths:
12+
- '**.py'
13+
- '**.yml'
14+
workflow_dispatch:
415

516
jobs:
6-
run:
7-
runs-on: ubuntu-latest
8-
steps:
9-
- uses: actions/checkout@v4
10-
- name: Start docker containers
11-
run: docker compose up -d --build || ( docker compose logs >&2 && exit 1; )
12-
- name: Wait for migrations to finish
13-
run: |
14-
echo "Waiting for migrations to complete..."
15-
until ! docker compose exec -T web src/manage.py showmigrations | grep -q '\[ \]'; do
16-
echo "Migrations not finished, waiting..."
17-
sleep 3
18-
done
19-
- name: Show web-init logs
20-
run: docker compose logs web-init
21-
- name: Load fixtures
22-
run: docker compose exec -T web src/manage.py loaddata demodata
23-
- name: Create superuser
24-
run: docker compose exec -T web src/manage.py createsuperuser --username admin --email admin@admin.nl --no-input
25-
- name: Check main page
26-
run: |
27-
curl_status=$(curl -w '%{http_code}' -o /dev/null -s http://localhost:8000/)
28-
if [[ $curl_status != 200 ]]; then
29-
printf "Index page responds with ${curl_status} status.\r\n\r\n" >&2
30-
curl -i http://localhost:8000
31-
exit 1
32-
fi
17+
open-api-workflow-quick-start:
18+
uses: maykinmedia/open-api-workflows/.github/workflows/quick-start.yml@feature/add-quick-start

0 commit comments

Comments
 (0)