Skip to content

Commit

Permalink
Adds api health checks
Browse files Browse the repository at this point in the history
  • Loading branch information
djperrefort committed Dec 4, 2023
1 parent 03bc8bd commit 4ff0f5a
Showing 1 changed file with 20 additions and 1 deletion.
21 changes: 20 additions & 1 deletion .github/workflows/Test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,25 @@ jobs:
- name: Run migration checks
run: docker run test-image makemigrations --check

health-checks:
name: API Health Checks
runs-on: ubuntu-latest

steps:
- name: Fetch image artifact
uses: actions/download-artifact@v3
with:
name: test-image
path: /tmp

- name: Load image
run: docker load --input /tmp/test-image.tar

- name: Run migration checks
run: |
docker run -p 8000:8000 test-image
curl localhst:8000
app-tests:
name: Application Tests
runs-on: ubuntu-latest
Expand All @@ -43,7 +62,7 @@ jobs:
report-test-status:
name: Report Test Status
runs-on: ubuntu-latest
needs: [ app-tests, system-checks ]
needs: [ app-tests, system-checks, health-checks ]
if: always()

steps:
Expand Down

0 comments on commit 4ff0f5a

Please sign in to comment.