Skip to content

Commit e28f919

Browse files
committed
Update workflow again
1 parent 6b3bd97 commit e28f919

1 file changed

Lines changed: 23 additions & 14 deletions

File tree

.github/workflows/dotnetcore.yml

Lines changed: 23 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,34 @@
1-
name: Tests
1+
name: build and test
22

33
on:
44
push:
5-
branches: [ master ]
65
pull_request:
7-
branches: [ master ]
6+
branches: [ main ]
7+
paths:
8+
- '**.cs'
9+
- '**.csproj'
10+
11+
env:
12+
DOTNET_VERSION: '9.0.x' # The .NET SDK version to use
813

914
jobs:
10-
build:
15+
build-and-test:
1116

17+
name: build-and-test
1218
runs-on: ubuntu-latest
1319

14-
steps:
15-
- uses: actions/checkout@v4
16-
- name: Setup dotnet
17-
uses: actions/setup-dotnet@v4
18-
with:
19-
dotnet-version: '9.0.x'
20+
steps:
21+
- uses: actions/checkout@v3
22+
- name: Setup .NET
23+
uses: actions/setup-dotnet@v3
24+
with:
25+
dotnet-version: ${{ env.DOTNET_VERSION }}
26+
2027
- name: Install dependencies
21-
run: dotnet restore
28+
run: dotnet restore
29+
2230
- name: Build
23-
run: dotnet build --no-restore --configuration Release
24-
- name: Test with the dotnet CLI
25-
run: dotnet test --no-build
31+
run: dotnet build --configuration Release --no-restore
32+
33+
- name: Test
34+
run: dotnet test --no-restore --verbosity normal

0 commit comments

Comments
 (0)