-
Notifications
You must be signed in to change notification settings - Fork 1
63 lines (49 loc) · 1.43 KB
/
ci.yml
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
name: CI
on:
push:
jobs:
check:
runs-on: ubuntu-24.04
timeout-minutes: 10
steps:
- uses: actions/checkout@v1
- name: build
run: docker compose build check
- name: check
run: docker compose run --rm check
- name: test
run: docker compose run --rm check poetry run pytest tests/
frontend:
runs-on: ubuntu-22.04
name: Front Build and Tests
steps:
- uses: actions/checkout@v3
- name: Use Node.js 22
uses: actions/setup-node@v3
with:
node-version: 22
- name: Install dependencies
working-directory: ./frontend
run: npm install # --frozen-lockfile
- name: Lint
working-directory: ./frontend
run: npm run lint
- name: Unit tests
working-directory: ./frontend
run: npm run test:unit --coverage.enabled true
# - name: Report Frontend Coverage
# # Set if: always() to also generate the report if tests are failing
# # Only works if you set `reportOnFailure: true` in your vite config as specified above
# if: always()
# uses: davelosert/vitest-coverage-report-action@v2
# with:
# working-directory: ./frontend
- name: Build
working-directory: ./frontend
run: npm run build
build:
runs-on: ubuntu-22.04
name: Build Docker images
steps:
- name: Build
run: docker compose build