-
Notifications
You must be signed in to change notification settings - Fork 123
57 lines (51 loc) · 1.82 KB
/
Copy pathbuild.yml
File metadata and controls
57 lines (51 loc) · 1.82 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
# This workflow will build a .NET project
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-net
name: .NET
on:
workflow_dispatch:
push:
branches: [ "main" ]
paths:
- '**.cs'
- '**.csproj'
- '**.razor'
pull_request:
branches: [ "main" ]
paths:
- '**.cs'
- '**.csproj'
- '**.razor'
jobs:
build:
name: Build Projects
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
include:
- project-name: "start"
project-path: "start/MyWeatherHub.sln"
- project-name: "complete"
project-path: "complete/MyWeatherHub.sln"
- project-name: "lesson-02-servicedefaults"
project-path: "workshop/Lesson-02-ServiceDefaults/code/MyWeatherHub.sln"
- project-name: "lesson-03-dashboard-apphost"
project-path: "workshop/Lesson-03-Dashboard-AppHost/code/MyWeatherHub.sln"
- project-name: "lesson-04-servicediscovery"
project-path: "workshop/Lesson-04-ServiceDiscovery/code/MyWeatherHub.sln"
- project-name: "lesson-05-integrations"
project-path: "workshop/Lesson-05-Integrations/code/MyWeatherHub.sln"
- project-name: "lesson-06-telemetry"
project-path: "workshop/Lesson-06-Telemetry/code/MyWeatherHub.sln"
- project-name: "lesson-07-database"
project-path: "workshop/Lesson-07-Database/code/MyWeatherHub.sln"
- project-name: "lesson-08-integration-testing"
project-path: "workshop/Lesson-08-Integration-Testing/code/MyWeatherHub.sln"
steps:
- uses: actions/checkout@v4
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: 9.0.x
- name: Build ${{ matrix.project-name }}
run: dotnet build "${{ matrix.project-path }}"