Skip to content
Merged
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
32 changes: 32 additions & 0 deletions .github/workflows/PR-Web.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: PR Web

on:
pull_request:
branches: ["main"]

jobs:
build-web:
runs-on: windows-latest

steps:
- uses: actions/checkout@v4

Copy link

Copilot AI Jun 24, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Consider adding a caching step (e.g., actions/cache) after checkout to cache NuGet packages and speed up subsequent restores.

Suggested change
- name: Cache NuGet packages
uses: actions/cache@v3
with:
path: ~/.nuget/packages
key: ${{ runner.os }}-nuget-${{ hashFiles('**/*.csproj', '**/global.json') }}
restore-keys: |
${{ runner.os }}-nuget-

Copilot uses AI. Check for mistakes.
- name: Setup .NET 9.0
uses: actions/setup-dotnet@v4
with:
dotnet-version: 9.0.x

- name: Run dotnet format
run: dotnet format --verify-no-changes

- name: Restore dependencies for Web
run: dotnet restore TinyInsights.Web/TinyInsights.Web.csproj

- name: Build Web
run: dotnet build TinyInsights.Web/TinyInsights.Web.csproj --no-restore

- name: Restore dependencies for WebServer
run: dotnet restore TinyInsights.WebServer/TinyInsights.WebServer.csproj

- name: Build WebServer
run: dotnet build TinyInsights.WebServer/TinyInsights.WebServer.csproj --no-restore
Loading