-
Notifications
You must be signed in to change notification settings - Fork 0
45 lines (36 loc) · 1.16 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
39
40
41
42
43
44
45
name: .Net Build
on:
push:
branches: []
pull_request:
branches: [ master ]
jobs:
build:
strategy:
matrix:
configuration: [Debug, Release]
platform: ["\"Any CPU\""]
os: [ubuntu-latest, macOS-latest, windows-latest]
env:
Source_Path: "./src/"
Solution_Name: CleanMicroserviceSystem.sln
WebUI_Project_Path: "./src/WebUI/CleanMicroserviceSystem.Aphrodite/CleanMicroserviceSystem.Aphrodite.csproj"
runs-on: ${{ matrix.os }}
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Install .NET Core
uses: actions/setup-dotnet@v2
with:
dotnet-version: 8.0.x
include-prerelease: true
- name: Install dependencies
run: dotnet restore ${{ env.Source_Path }}
- name: Install workload
run: dotnet workload restore --project ${{ env.WebUI_Project_Path }}
- name: Build
run: dotnet build /p:Configuration=${{ matrix.configuration }} /p:Platform=${{ matrix.platform }} --no-restore ${{ env.Source_Path }}
- name: Test
run: dotnet test --no-build --verbosity normal ${{ env.Source_Path }}