-
Notifications
You must be signed in to change notification settings - Fork 0
66 lines (52 loc) · 1.75 KB
/
Copy pathci.yml
File metadata and controls
66 lines (52 loc) · 1.75 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
name: CI & Code Coverage
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
lint-and-typecheck:
name: Lint & Typecheck
runs-on: ubuntu-latest
steps:
- name: Checkout Code
uses: actions/checkout@v7
- name: Setup Node.js
uses: actions/setup-node@v6
with:
node-version: 20
cache: 'npm'
- name: Install Dependencies
run: npm ci
- name: Run ESLint
run: npm run lint
- name: Run TypeScript Typecheck
run: npx tsc --noEmit
build-and-test:
name: build-and-test (${{ matrix.os }})
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [windows-latest, ubuntu-latest]
steps:
- name: Checkout Code
uses: actions/checkout@v7
- name: Checkout Avalonia.LayoutInspector (Shallow)
run: git clone --depth 1 https://github.com/spelech/Avalonia.LayoutInspector.git ../Avalonia.LayoutInspector
- name: Setup .NET SDK 10.0
uses: actions/setup-dotnet@v6
with:
dotnet-version: '10.0.x'
cache: true
cache-dependency-path: 'LocalLLMServerManager.slnx'
- name: Restore Dependencies
run: dotnet restore LocalLLMServerManager.slnx
- name: Build Solution
run: dotnet build LocalLLMServerManager.slnx -c Release --no-restore
- name: Run Unit Tests & Collect Code Coverage (Ubuntu)
if: matrix.os == 'ubuntu-latest'
run: dotnet test LocalLLMServerManager.Tests/LocalLLMServerManager.Tests.csproj -c Release --no-build --collect:"XPlat Code Coverage" --nologo
- name: Run Unit Tests (Windows)
if: matrix.os == 'windows-latest'
run: dotnet test LocalLLMServerManager.Tests/LocalLLMServerManager.Tests.csproj -c Release --no-build --nologo