Skip to content

Commit

Permalink
Merge pull request #62 from TheSecretOrganization/actions
Browse files Browse the repository at this point in the history
add django tests to gh action
  • Loading branch information
Neffi42 authored Sep 9, 2024
2 parents 4cf734e + 892d2c0 commit c1e1599
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 9 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Build
name: CodeQL
on:
push:
branches:
Expand Down
17 changes: 9 additions & 8 deletions .github/workflows/deployment-check.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Deployment Check
name: Deployment
on:
push:
branches:
Expand All @@ -8,22 +8,23 @@ on:
jobs:
docker-compose:
runs-on: ubuntu-latest

steps:
- name: Checkout Code
uses: actions/checkout@v3
with:
fetch-depth: 0

- name: Create .env file
run: cp .env.template .env

- name: Build and start Docker containers
run: docker compose up --build -d

- name: Build containers
run: docker compose build
- name: Run django tests
run: docker compose run django python manage.py test
- name: Shutdown containers
run: docker compose down --volumes
- name: Run containers
run: docker compose up -d
- name: Wait for services to initialize
run: sleep 30

- name: Perform health checks
run: |
services=$(docker compose ps --services)
Expand Down

0 comments on commit c1e1599

Please sign in to comment.