Skip to content

Commit

Permalink
Create test-docker.yml #70
Browse files Browse the repository at this point in the history
  • Loading branch information
hcwinsemius authored May 31, 2024
1 parent bc5f52f commit 95ab343
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions .github/workflows/test-docker.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: Build and test docker image

on:
pull_request:
workflow_dispatch:
jobs:

build:
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4
- name: Build the Docker image
run: |
docker compose -f docker-compose.yml build
docker compose -f docker-compose.yml up -d
sleep 30 # wait until compose is up
docker compose exec webapp /bin/bash -c "export LORC_DB_HOST= && python manage.py test"

0 comments on commit 95ab343

Please sign in to comment.