Skip to content

Commit

Permalink
actions debug
Browse files Browse the repository at this point in the history
  • Loading branch information
mjaquiery committed Dec 12, 2023
1 parent 015775b commit ede89c1
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions .github/workflows/check-spec.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,16 +23,15 @@ jobs:
run: |
sudo apt-get update
sudo apt-get install -y docker-compose
mkdir -p .dev/spec
sudo chmod 777 .dev/spec
- name: Generate spec
run: |
mkdir -p .dev/spec
sudo chmod 777 .dev/spec
# app will create a spec file tagged with the version, but we create our own spec for comparison
# using x rather than a number means it appears later and gets picked up by `tail -n 1` in check_spec
docker-compose run --rm app bash -c "python backend_django/manage.py spectacular --format openapi-json >> .dev/spec/openapi-x.json"
sudo chmod 777 .dev/spec/*
docker-compose run --rm app bash -c "python backend_django/manage.py spectacular --format openapi-json >> /spec/openapi-x.json"
- name: Run spec check
run: |
sudo chmod 777 .dev/spec/*
docker-compose run --rm check_spec

0 comments on commit ede89c1

Please sign in to comment.