-
Notifications
You must be signed in to change notification settings - Fork 0
69 lines (66 loc) · 2.01 KB
/
build.yml
File metadata and controls
69 lines (66 loc) · 2.01 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
60
61
62
63
64
65
66
67
68
69
name: Build & Test
on:
pull_request:
branches: [main]
jobs:
backend:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-dotnet@v4
with:
dotnet-version: '10.0.x'
- uses: actions/cache@v4
with:
path: ~/.nuget/packages
key: nuget-${{ runner.os }}-${{ hashFiles('src/**/*.csproj') }}
restore-keys: |
nuget-${{ runner.os }}-
- run: dotnet restore
working-directory: src
- run: dotnet build --no-restore
working-directory: src
- run: dotnet test --no-build --verbosity normal
working-directory: src
frontend:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: '22'
cache: 'npm'
cache-dependency-path: src/Clientside/package-lock.json
- run: npm ci --legacy-peer-deps
working-directory: src/Clientside
- name: Prettier check
run: npm run format:check
working-directory: src/Clientside
- name: ESLint
run: npm run lint
working-directory: src/Clientside
- run: npm run build
working-directory: src/Clientside
playwright:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: '22'
cache: 'npm'
cache-dependency-path: src/Clientside/package-lock.json
- run: npm ci --legacy-peer-deps
working-directory: src/Clientside
- name: Install Playwright browsers
run: npx playwright install --with-deps chromium
working-directory: src/Clientside
- name: Run Playwright component tests
run: npm run test-ct
working-directory: src/Clientside
- uses: actions/upload-artifact@v4
if: ${{ !cancelled() }}
with:
name: playwright-report
path: src/Clientside/playwright-report/
retention-days: 14