Skip to content

Commit f497ea1

Browse files
authored
ci: standardize workflows and fix stale SDK versions (#147)
- Update SDK from 9.x to 10.0.x in publish-to-nuget.yml - Remove stale --framework net7.0 from test step - Add DOTNET_NOLOGO and DOTNET_SKIP_FIRST_TIME_EXPERIENCE to dotnet.yml - Add concurrency group to dotnet.yml
1 parent 352a8b6 commit f497ea1

File tree

2 files changed

+12
-4
lines changed

2 files changed

+12
-4
lines changed

.github/workflows/dotnet.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,14 @@ on:
99
pull_request:
1010
branches: [ "main" ]
1111

12+
env:
13+
DOTNET_NOLOGO: true
14+
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: 1
15+
16+
concurrency:
17+
group: ci-${{ github.ref }}
18+
cancel-in-progress: true
19+
1220
jobs:
1321
build-and-test:
1422

.github/workflows/publish-to-nuget.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
- name: Setup .NET SDK
2020
uses: actions/setup-dotnet@v5
2121
with:
22-
dotnet-version: 9.x
22+
dotnet-version: 10.0.x
2323

2424
- name: Cache NuGet packages
2525
uses: actions/cache@v5
@@ -48,10 +48,10 @@ jobs:
4848
- name: Setup .NET SDK
4949
uses: actions/setup-dotnet@v5
5050
with:
51-
dotnet-version: 9.x
51+
dotnet-version: 10.0.x
5252

5353
- name: Run Test
54-
run: dotnet test --configuration $BUILD_CONFIG --no-build --verbosity normal --framework net7.0
54+
run: dotnet test --configuration $BUILD_CONFIG --verbosity normal
5555

5656
publish:
5757
needs: test
@@ -71,7 +71,7 @@ jobs:
7171
- name: Setup .NET SDK
7272
uses: actions/setup-dotnet@v5
7373
with:
74-
dotnet-version: 9.x
74+
dotnet-version: 10.0.x
7575

7676
- name: Publish to NuGet
7777
if: startsWith(github.ref, 'refs/tags')

0 commit comments

Comments
 (0)