Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36 changes: 33 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,30 @@ on:
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
Expand All @@ -18,19 +41,26 @@ jobs:
- name: Checkout Code
uses: actions/checkout@v7

- name: Checkout Avalonia.LayoutInspector
run: git clone https://github.com/spelech/Avalonia.LayoutInspector.git ../Avalonia.LayoutInspector
- 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
- 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
6 changes: 4 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,15 @@ jobs:
- name: Checkout Code
uses: actions/checkout@v7

- name: Checkout Avalonia.LayoutInspector
run: git clone https://github.com/spelech/Avalonia.LayoutInspector.git ../Avalonia.LayoutInspector
- name: Checkout Avalonia.LayoutInspector (Shallow)
run: git clone --depth 1 https://github.com/spelech/Avalonia.LayoutInspector.git ../Avalonia.LayoutInspector

- name: Setup .NET 10 SDK
uses: actions/setup-dotnet@v6
with:
dotnet-version: '10.0.x'
cache: true
cache-dependency-path: 'LocalLLMServerManager.slnx'

- name: Install WASM Workload
run: dotnet workload install wasm-tools
Expand Down
Binary file modified wwwroot/_framework/LocalLLMServerManager.Shared.wasm
Binary file not shown.
Binary file modified wwwroot/_framework/LocalLLMServerManager.Web.wasm
Binary file not shown.
6 changes: 3 additions & 3 deletions wwwroot/_framework/dotnet.boot.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
export const config = /*json-start*/{
"mainAssemblyName": "LocalLLMServerManager.Web.dll",
"resources": {
"hash": "sha256-cUu5sp/tPue4O1eVA+84XhQmjWaZcYQ7uC2rH4hI31c=",
"hash": "sha256-CC06yhuePd/dhKLauKBxG21H9tsiKOceO36ur8h3PRM=",
"jsModuleNative": [
{
"name": "dotnet.native.js"
Expand Down Expand Up @@ -131,12 +131,12 @@ export const config = /*json-start*/{
{
"virtualPath": "LocalLLMServerManager.Shared.wasm",
"name": "LocalLLMServerManager.Shared.wasm",
"hash": "sha256-qHVIpaXUV9uN+7lxwRWho2JNCZ4teEXaEofLBZcuGxM="
"hash": "sha256-pGnitCyXIS1yBOTmudGbFWc4+O4Q3LzrI4AnD0ANTls="
},
{
"virtualPath": "LocalLLMServerManager.Web.wasm",
"name": "LocalLLMServerManager.Web.wasm",
"hash": "sha256-GnEK4p4sfPa841jBQHkkInO/of5HihM3cAfPzGqGImE="
"hash": "sha256-C9CN+ERjyv3tUpoqGwE/HTZRWTmnq1IQvN/ee1hrs4c="
},
{
"virtualPath": "Semi.Avalonia.wasm",
Expand Down
Loading