Skip to content

Commit 43ba0ca

Browse files
Create dotnet-desktop.yml
1 parent 0f461a1 commit 43ba0ca

File tree

1 file changed

+43
-0
lines changed

1 file changed

+43
-0
lines changed
Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
name: .NET Core Desktop
2+
3+
on:
4+
push:
5+
branches: [ "master" ]
6+
pull_request:
7+
branches: [ "master" ]
8+
9+
jobs:
10+
11+
build:
12+
13+
strategy:
14+
matrix:
15+
configuration: [Debug, Release]
16+
17+
runs-on: windows-latest # For a list of available runner types, refer to
18+
# https://help.github.com/en/actions/reference/workflow-syntax-for-github-actions#jobsjob_idruns-on
19+
20+
env:
21+
Solution_Name: OpenMcdf.sln
22+
23+
steps:
24+
- name: Checkout
25+
uses: actions/checkout@v4
26+
with:
27+
fetch-depth: 0
28+
29+
# Install the .NET Core workload
30+
- name: Install .NET Core
31+
uses: actions/setup-dotnet@v4
32+
with:
33+
dotnet-version: 8.0.x
34+
35+
# Execute all unit tests in the solution
36+
- name: Execute unit tests
37+
run: dotnet test
38+
39+
# Restore the application to populate the obj folder with RuntimeIdentifiers
40+
- name: Restore the application
41+
run: dotnet build -c $env:Configuration
42+
env:
43+
Configuration: ${{ matrix.configuration }}

0 commit comments

Comments
 (0)