.github/workflows/application-tests.yml
---
name: Application tests
on: [push]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4.2.2
- name: Login to DockerHub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Run application tests
env:
QUALITY_TIME_VERSION: v5.17.1
ENV: ci
PROXY_PORT: 8080
run: |
mkdir -p build
docker compose --file docker/docker-compose.yml --file docker/docker-compose.ci.yml --project-name quality-time up --build --detach --wait
docker run -t -w `pwd` -v `pwd`:`pwd` --network=container:quality-time-www-1 ghcr.io/astral-sh/uv:python3.12-bookworm tests/application_tests/ci/test.sh
- name: Save container logs
if: always()
run: |
docker compose logs > build/containers.log
- name: Upload artifacts
uses: actions/upload-artifact@v4
if: always()
with:
name: build-artifacts
path: build