Commit 7a5410f 1 parent 46640c0 commit 7a5410f Copy full SHA for 7a5410f
File tree 1 file changed +13
-28
lines changed
1 file changed +13
-28
lines changed Original file line number Diff line number Diff line change 1
- name : quick-start
1
+ name : Quick Start
2
2
3
- on : [push]
3
+ on :
4
+ push :
5
+ branches :
6
+ - master
7
+ pull_request :
8
+ branches :
9
+ - ' **'
10
+ workflow_dispatch :
4
11
5
12
jobs :
6
- run :
7
- runs-on : ubuntu-latest
8
- steps :
9
- - name : Download docker-compose file
10
- # todo replace branch name with master after the change is merge
11
- run : wget https://raw.githubusercontent.com/maykinmedia/objecttypes-api/feature/merge-docker-composes/docker-compose.yml
12
- - name : Start docker containers
13
- run : docker compose up -d --no-build
14
- - name : Wait for migrations to finish
15
- run : |
16
- echo "Waiting for migrations to complete..."
17
- until ! docker compose exec -T web src/manage.py showmigrations | grep -q '\[ \]'; do
18
- echo "Migrations not finished, waiting..."
19
- sleep 3
20
- done
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" >&2
30
- exit 1
31
- fi
13
+ open-api-workflow-quick-start :
14
+ uses : maykinmedia/open-api-workflows/.github/workflows/quick-start.yml@v4.2.0
15
+ with :
16
+ fixtures : ' demodata'
You can’t perform that action at this time.
0 commit comments