Skip to content

Commit 8fa7bb7

Browse files
github workflow
1 parent 6221992 commit 8fa7bb7

1 file changed

Lines changed: 15 additions & 4 deletions

File tree

.github/workflows/dotnet.yml

Lines changed: 15 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# This workflow will build a .NET project
1+
# This workflow will build and test a .NET project
22
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-net
33

44
name: .NET
@@ -16,13 +16,24 @@ jobs:
1616

1717
steps:
1818
- uses: actions/checkout@v4
19+
1920
- name: Setup .NET
2021
uses: actions/setup-dotnet@v4
2122
with:
22-
dotnet-version: 8.0.x
23+
dotnet-version: 9.0.x
24+
25+
- name: Navigate to project directory
26+
working-directory: StorageDemo # Replace with the relative path to your project directory
27+
run: pwd
28+
2329
- name: Restore dependencies
30+
working-directory: StorageDemo # Replace with the relative path to your project directory
2431
run: dotnet restore
32+
2533
- name: Build
26-
run: dotnet build --no-restore
34+
working-directory: StorageDemo # Replace with the relative path to your project directory
35+
run: dotnet build --no-restore --configuration Release
36+
2737
- name: Test
28-
run: dotnet test --no-build --verbosity normal
38+
working-directory: StorageDemo # Replace with the relative path to your project directory
39+
run: dotnet test --no-build --verbosity normal

0 commit comments

Comments
 (0)