-
Notifications
You must be signed in to change notification settings - Fork 0
51 lines (40 loc) · 1.07 KB
/
Copy pathci.yml
File metadata and controls
51 lines (40 loc) · 1.07 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
name: CI
on:
pull_request:
branches: [main]
push:
branches: [main]
jobs:
build-backend:
name: Build & Test Backend
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup .NET 8
uses: actions/setup-dotnet@v4
with:
dotnet-version: '8.0.x'
- name: Restore dependencies
run: dotnet restore CleanSweep.sln
- name: Build
run: dotnet build CleanSweep.sln -c Release --no-restore
build-frontend:
name: Build Frontend
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup Node.js 20
uses: actions/setup-node@v4
with:
node-version: '20'
cache: 'npm'
cache-dependency-path: client/package-lock.json
- name: Install dependencies
run: cd client && npm ci
- name: Type check
run: cd client && npx tsc -b
- name: Build
run: cd client && npm run build
- name: Lint
run: cd client && npx eslint src/ --max-warnings 0
continue-on-error: true