-
Notifications
You must be signed in to change notification settings - Fork 18
37 lines (34 loc) · 1.13 KB
/
application-tests.yml
File metadata and controls
37 lines (34 loc) · 1.13 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
---
name: Application tests
on: [push] # yamllint disable-line rule:truthy
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6.0.2
- name: Login to DockerHub
uses: docker/login-action@v4.1.0
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Run application tests
env:
QUALITY_TIME_VERSION: v5.50.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.14-bookworm tests/application_tests/test.sh
- name: Save container logs
if: always()
run: |
docker compose logs > build/containers.log
- name: Upload artifacts
uses: actions/upload-artifact@v7.0.0
if: always()
with:
name: build-artifacts
path: build