-
Notifications
You must be signed in to change notification settings - Fork 3
75 lines (73 loc) · 2.37 KB
/
validate.yaml
File metadata and controls
75 lines (73 loc) · 2.37 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
70
71
72
73
74
75
on:
push:
branches:
- main
pull_request:
branches:
- main
types: [opened, synchronize, reopened]
jobs:
build-and-test:
name: 'Build & Test'
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v6
with:
fetch-depth: 0
- name: 'Setup .NET SDK 10.x'
uses: actions/setup-dotnet@v5
with:
dotnet-version: '10.x'
- name: 'Setup Node.js 24.x'
uses: actions/setup-node@v6
with:
node-version: '24.x'
- name: 'Setup Chrome'
uses: browser-actions/setup-chrome@v2
id: 'setup-chrome'
- name: 'Set CHROME_BIN environment variable'
run: 'echo "CHROME_BIN=${{ steps.setup-chrome.outputs.chrome-path }}" >> $env:GITHUB_ENV'
- name: 'Restore .NET solution'
run: 'dotnet restore'
working-directory: './src'
- name: 'Build .NET solution'
run: 'dotnet build --no-restore -c Release'
working-directory: './src'
- name: 'Test .NET solution'
run: 'dotnet test --no-build -c Release'
working-directory: './src'
- name: 'Install npm packages'
run: 'npm ci'
working-directory: './src/Turnierplan.App/Client/'
- name: 'Build client application'
run: 'npm run build:prod'
working-directory: './src/Turnierplan.App/Client/'
- name: 'Lint client application'
run: 'npm run lint:ci'
working-directory: './src/Turnierplan.App/Client/'
- name: 'Test client application'
run: 'npm run test:ci'
working-directory: './src/Turnierplan.App/Client/'
e2e-amd64:
name: 'E2E Tests (amd64)'
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v6
with:
fetch-depth: 0
- name: 'Setup Node.js 24.x'
uses: actions/setup-node@v6
with:
node-version: '24.x'
- name: 'Install npm packages'
run: 'npm ci'
working-directory: './src/Turnierplan.App/Client/'
- name: 'Prepare e2e test environment'
run: 'npm run e2e:prepare:amd64'
working-directory: './src/Turnierplan.App/Client/'
- name: 'Run e2e tests'
run: 'npm run e2e:run'
working-directory: './src/Turnierplan.App/Client/'
- name: 'Destroy e2e test environment'
run: 'npm run e2e:destroy'
working-directory: './src/Turnierplan.App/Client/'