-
-
Notifications
You must be signed in to change notification settings - Fork 0
43 lines (34 loc) · 944 Bytes
/
ci.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
name: CI
on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
jobs:
build:
runs-on: windows-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
# Install the .NET Core workload
- name: Install .NET Core
uses: actions/setup-dotnet@v3
with:
dotnet-version: 8.0.x
# Add MSBuild to the PATH: https://github.com/microsoft/setup-msbuild
- name: Setup MSBuild.exe
uses: microsoft/setup-msbuild@v1.0.2
- name: Execute build
run: dotnet build
# Execute all unit tests in the solution
- name: Execute unit tests
run: dotnet test
- name: Publish desktop app
run: dotnet publish Tsukuru.App/Tsukuru.App.csproj
- name: Upload build artifacts
uses: actions/upload-artifact@v3
with:
name: Package
path: Tsukuru.App\bin\Release\net8.0-windows\publish\