Skip to content

Commit

Permalink
Merge pull request #525 from maykinmedia/feature/update-quick-start
Browse files Browse the repository at this point in the history
[maykinmedia/open-api-framework#103] Update quick-start.yml
  • Loading branch information
danielmursa-dev authored Feb 14, 2025
2 parents e1a6825 + 07a1b15 commit 83f940b
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 30 deletions.
42 changes: 13 additions & 29 deletions .github/workflows/quick-start.yml
Original file line number Diff line number Diff line change
@@ -1,32 +1,16 @@
name: quick-start
name: Quick Start

on: [push]
on:
push:
branches:
- master
pull_request:
branches:
- '**'
workflow_dispatch:

jobs:
run:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Start docker containers
run: docker compose up -d --build
- name: Wait for migrations to finish
run: |
echo "Waiting for migrations to complete..."
until ! docker compose exec -T web src/manage.py showmigrations | grep -q '\[ \]'; do
echo "Migrations not finished, waiting..."
sleep 3
done
- name: Show web-init logs
run: docker compose logs web-init
- name: Load fixtures
run: docker compose exec -T web src/manage.py loaddata demodata
- name: Create superuser
run: docker compose exec -T web src/manage.py createsuperuser --username admin --email [email protected] --no-input
- name: Check main page
run: |
curl_status=$(curl -w '%{http_code}' -o /dev/null -s http://localhost:8000/)
if [[ $curl_status != 200 ]]; then
printf "Index page responds with ${curl_status} status.\r\n\r\n" >&2
curl -i http://localhost:8000
exit 1
fi
open-api-workflow-quick-start:
uses: maykinmedia/open-api-workflows/.github/workflows/[email protected]
with:
fixtures: 'demodata'
2 changes: 1 addition & 1 deletion docker/setup_configuration/data.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -82,4 +82,4 @@ oidc_db_config_admin_auth:
oidc_op_user_endpoint: https://example.com/realms/test/protocol/openid-connect/userinfo

# workaround for https://github.com/maykinmedia/django-setup-configuration/issues/27
userinfo_claims_source: id_token
userinfo_claims_source: id_token

0 comments on commit 83f940b

Please sign in to comment.