Skip to content

Commit 023ecb7

Browse files
committed
Test GitHub action
1 parent 14d45be commit 023ecb7

File tree

1 file changed

+47
-0
lines changed

1 file changed

+47
-0
lines changed

.github/workflows/dotnet.yml

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
name: .NET Core Desktop
2+
3+
on:
4+
workflow_dispatch:
5+
push:
6+
branches: [ "test_github_actions" ]
7+
pull_request:
8+
9+
jobs:
10+
11+
build:
12+
13+
strategy:
14+
matrix:
15+
configuration: [Release]
16+
17+
runs-on: windows-latest
18+
19+
env:
20+
Solution_Name: Flow.Launcher.Localization.slnx
21+
Test_Project_Path: Flow.Launcher.Localization\Flow.Launcher.Localization.csproj
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: 7.0.x
34+
35+
# Add MSBuild to the PATH: https://github.com/microsoft/setup-msbuild
36+
- name: Setup MSBuild.exe
37+
uses: microsoft/setup-msbuild@v2
38+
39+
# Execute all unit tests in the solution
40+
- name: Execute unit tests
41+
run: dotnet test
42+
43+
# Restore the application to populate the obj folder with RuntimeIdentifiers
44+
- name: Restore the application
45+
run: msbuild $env:Solution_Name /t:Restore /p:Configuration=$env:Configuration
46+
env:
47+
Configuration: ${{ matrix.configuration }}

0 commit comments

Comments
 (0)