-
Notifications
You must be signed in to change notification settings - Fork 738
38 lines (32 loc) · 1.11 KB
/
dotnet.yml
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
# 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 Build
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
env:
DOTNET_VERSION: '8.0.x' # The .NET SDK version to use
jobs:
build:
name: Build All Projects
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
project:
- 3-razor-pages/0-start/RazorPagesPizza/RazorPagesPizza/RazorPagesPizza.csproj
- 3-razor-pages/1-complete/RazorPagesPizza/RazorPagesPizza/RazorPagesPizza.csproj
- 4-minimal-api/0-start/PizzaStore/PizzaStore.csproj
- 4-minimal-api/1-complete/PizzaStore/PizzaStore.csproj
- 5-blazor/0-start/ConnectFour/ConnectFour.csproj
- 5-blazor/1-complete/ConnectFour/ConnectFour.csproj
steps:
- uses: actions/checkout@v3
- name: Setup .NET
uses: actions/setup-dotnet@v3
with:
dotnet-version: ${{ env.DOTNET_VERSION }}
- name: Build ${{ matrix.project }}
run: dotnet build "${{ matrix.project }}"