File tree 3 files changed +40
-10
lines changed
3 files changed +40
-10
lines changed Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ name: Smokeshow
2
2
3
3
on :
4
4
workflow_run :
5
- workflows : [Test]
5
+ workflows : [Test Backend ]
6
6
types : [completed]
7
7
8
8
jobs :
Original file line number Diff line number Diff line change 1
- name : Test
1
+ name : Test Backend
2
2
3
3
on :
4
4
push :
11
11
12
12
jobs :
13
13
14
- test :
14
+ test-backend :
15
15
runs-on : ubuntu-latest
16
16
steps :
17
17
- name : Checkout
@@ -21,14 +21,18 @@ jobs:
21
21
uses : actions/setup-python@v5
22
22
with :
23
23
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"
26
28
- 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
30
33
- 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
32
36
- run : docker compose down -v --remove-orphans
33
37
- name : Store coverage files
34
38
uses : actions/upload-artifact@v4
41
45
alls-green : # This job does nothing and is only used for the branch protection
42
46
if : always()
43
47
needs :
44
- - test
48
+ - test-backend
45
49
runs-on : ubuntu-latest
46
50
steps :
47
51
- name : Decide whether the needed jobs succeeded or failed
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
You can’t perform that action at this time.
0 commit comments