File tree Expand file tree Collapse file tree 2 files changed +39
-9
lines changed Expand file tree Collapse file tree 2 files changed +39
-9
lines changed Original file line number Diff line number Diff line change 1+ name : Test Docker Compose
2+
3+ on :
4+ push :
5+ branches :
6+ - master
7+ pull_request :
8+ types :
9+ - opened
10+ - synchronize
11+
12+ jobs :
13+
14+ test-docker-compose :
15+ runs-on : ubuntu-latest
16+ steps :
17+ - name : Checkout
18+ uses : actions/checkout@v4
19+ - run : docker compose build
20+ - run : docker compose down -v --remove-orphans
21+ - run : docker compose up -d --wait
22+ - name : Test backend is up
23+ run : curl http://localhost:8000/api/v1/utils/health-check
24+ - name : Test frontend is up
25+ run : curl http://localhost:5173
26+ - run : docker compose down -v --remove-orphans
Original file line number Diff line number Diff line change 1- name : Test
1+ name : Test Backend
22
33on :
44 push :
1111
1212jobs :
1313
14- test :
14+ test-backend :
1515 runs-on : ubuntu-latest
1616 steps :
1717 - name : Checkout
@@ -21,14 +21,18 @@ jobs:
2121 uses : actions/setup-python@v5
2222 with :
2323 python-version : ' 3.10'
24-
25- - run : docker compose build
24+ - name : Install uv
25+ uses : astral-sh/setup-uv@v2
26+ with :
27+ version : " 0.4.15"
2628 - run : docker compose down -v --remove-orphans
27- - run : docker compose up -d
28- - name : Lint
29- run : docker compose exec -T backend bash scripts/lint.sh
29+ - run : docker compose up -d db mailcatcher
30+ - name : Migrate DB
31+ run : uv run bash scripts/prestart.sh
32+ working-directory : backend
3033 - name : Run tests
31- run : docker compose exec -T backend bash scripts/tests-start.sh "Coverage for ${{ github.sha }}"
34+ run : uv run bash scripts/tests-start.sh "Coverage for ${{ github.sha }}"
35+ working-directory : backend
3236 - run : docker compose down -v --remove-orphans
3337 - name : Store coverage files
3438 uses : actions/upload-artifact@v4
4145 alls-green : # This job does nothing and is only used for the branch protection
4246 if : always()
4347 needs :
44- - test
48+ - test-backend
4549 runs-on : ubuntu-latest
4650 steps :
4751 - name : Decide whether the needed jobs succeeded or failed
You can’t perform that action at this time.
0 commit comments