-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[maykinmedia/open-api-framework#103] Update quick-start.yml
- Loading branch information
1 parent
014cfe2
commit 29b60a3
Showing
2 changed files
with
20 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +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: | ||
- name: Download docker-compose file | ||
# todo replace branch name with master after the change is merge | ||
run: wget https://raw.githubusercontent.com/maykinmedia/objects-api/deps/oaf-0.8.0/docker-compose.yml | ||
- name: Start docker containers | ||
run: docker compose up -d --no-build | ||
- 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/quick-start.yml@feature/add-quick-start | ||
with: | ||
fixtures: 'demodata' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters