Skip to content

Commit cc97e5d

Browse files
Updates GitHub Actions workflow
1 parent 58de58d commit cc97e5d

1 file changed

Lines changed: 17 additions & 19 deletions

File tree

.github/workflows/dotnet.yml

Lines changed: 17 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -2,30 +2,28 @@ name: .NET Core Desktop
22

33
on:
44
push:
5-
branches: [ "main" ]
5+
branches: ["main"]
66
pull_request:
7-
branches: [ "main" ]
7+
branches: ["main"]
88

99
jobs:
10-
1110
build:
12-
13-
runs-on: windows-latest # For a list of available runner types, refer to
14-
# https://help.github.com/en/actions/reference/workflow-syntax-for-github-actions#jobsjob_idruns-on
11+
runs-on: windows-latest
1512

1613
steps:
17-
- name: Checkout
18-
uses: actions/checkout@v4
19-
with:
20-
fetch-depth: 0
14+
- name: Checkout
15+
uses: actions/checkout@v4
16+
with:
17+
fetch-depth: 0
2118

22-
- name: Install .NET Core
23-
uses: actions/setup-dotnet@v4
24-
with:
25-
dotnet-version: 8.0.x
19+
- name: Install .NET Core
20+
uses: actions/setup-dotnet@v4
21+
with:
22+
dotnet-version: 9.0.x
23+
cache: true
2624

27-
- name: Execute unit tests
28-
run: |
29-
cd sourcecodes
30-
dotnet build --configuration Release
31-
dotnet test ./FolderSecurityViewer.sln --framework net8.0-windows --configuration Release
25+
- name: Execute unit tests
26+
run: |
27+
cd sourcecodes
28+
dotnet build --configuration Release
29+
dotnet test ./FolderSecurityViewer.sln --framework net9.0-windows --configuration Release

0 commit comments

Comments
 (0)