-
Notifications
You must be signed in to change notification settings - Fork 690
59 lines (56 loc) · 1.8 KB
/
Copy pathci.yml
File metadata and controls
59 lines (56 loc) · 1.8 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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
name: CI
on:
push:
pull_request:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
lint-server:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- uses: astral-sh/setup-uv@08807647e7069bb48b6ef5acd8ec9567f424441b # v8.1.0
- run: uv venv
- run: uv pip install -r requirements/development.txt
- run: uv run make lint-server
lint-client:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- uses: actions/setup-node@v6
with:
node-version-file: '.nvmrc'
- run: npm ci
- uses: j178/prek-action@v2
- run: make lint-client
test-server:
runs-on: ubuntu-latest
env:
DJANGO_SETTINGS_MODULE: bakerydemo.settings.test
steps:
- uses: actions/checkout@v6
- uses: astral-sh/setup-uv@08807647e7069bb48b6ef5acd8ec9567f424441b # v8.1.0
- run: uv venv
- run: uv pip install -r requirements/development.txt
- run: uv run ./manage.py check
- run: uv run ./manage.py makemigrations --check --noinput
- run: uv run ./manage.py test
test-client-integration:
runs-on: ubuntu-latest
env:
DJANGO_SETTINGS_MODULE: bakerydemo.settings.test
PLAYWRIGHT_WEB_SERVER_COMMAND: uv run python manage.py runserver 127.0.0.1:8000 --noreload
steps:
- uses: actions/checkout@v6
- uses: astral-sh/setup-uv@08807647e7069bb48b6ef5acd8ec9567f424441b # v8.1.0
- uses: actions/setup-node@v6
with:
node-version-file: '.nvmrc'
- run: uv venv
- run: uv pip install -r requirements/development.txt
- run: uv run ./manage.py migrate
- run: uv run ./manage.py load_initial_data
- run: npm ci
- run: npx playwright install --with-deps chromium
- run: npm run test:e2e