Skip to content

Commit 9d4ce19

Browse files
committed
PR action for web projects
1 parent a3b081c commit 9d4ce19

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed

.github/workflows/PR-Web.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: PR Web
2+
3+
on:
4+
pull_request:
5+
branches: ["main"]
6+
7+
jobs:
8+
build-web:
9+
runs-on: ubuntu-latest
10+
11+
steps:
12+
- uses: actions/checkout@v4
13+
14+
- name: Setup .NET 9.0
15+
uses: actions/setup-dotnet@v4
16+
with:
17+
dotnet-version: 9.0.x
18+
19+
- name: Run dotnet format
20+
run: dotnet format --verify-no-changes
21+
22+
- name: Restore dependencies for Web
23+
run: dotnet restore TinyInsights.Web/TinyInsights.Web.csproj
24+
25+
- name: Build Web
26+
run: dotnet build TinyInsights.Web/TinyInsights.Web.csproj --no-restore
27+
28+
- name: Restore dependencies for WebServer
29+
run: dotnet restore TinyInsights.WebServer/TinyInsights.WebServer.csproj
30+
31+
- name: Build WebServer
32+
run: dotnet build TinyInsights.WebServer/TinyInsights.WebServer.csproj --no-restore

0 commit comments

Comments
 (0)