Skip to content

Commit d9c5c73

Browse files
authored
simplify setup dotnet (#1043)
1 parent 8888a16 commit d9c5c73

File tree

4 files changed

+25
-59
lines changed

4 files changed

+25
-59
lines changed

.github/workflows/buildtest.yaml

Lines changed: 10 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -11,18 +11,13 @@ jobs:
1111
- uses: actions/checkout@v3
1212
with:
1313
fetch-depth: 0
14-
- name: Setup dotnet SDK 3.1
14+
- name: Setup dotnet
1515
uses: actions/setup-dotnet@v2
1616
with:
17-
dotnet-version: '3.1.x'
18-
- name: Setup dotnet SDK 5
19-
uses: actions/setup-dotnet@v2
20-
with:
21-
dotnet-version: '5.0.x'
22-
- name: Setup dotnet SDK 6
23-
uses: actions/setup-dotnet@v2
24-
with:
25-
dotnet-version: '6.0.x'
17+
dotnet-version: |
18+
3.1.x
19+
5.0.x
20+
6.0.x
2621
# - name: Check Format
2722
# # don't check formatting on Windows b/c of CRLF issues.
2823
# if: matrix.os == 'ubuntu-latest'
@@ -31,11 +26,6 @@ jobs:
3126
run: dotnet build --configuration Release -v detailed
3227
- name: Test
3328
run: dotnet test /p:CollectCoverage=true /p:ExcludeByFile=\"**/KubernetesClient/generated/**/*.cs\" /p:CoverletOutputFormat="cobertura"
34-
# - uses: 5monkeys/cobertura-action@master
35-
# with:
36-
# path: tests/KubernetesClient.Tests/coverage.netcoreapp2.1.cobertura.xml
37-
# repo_token: ${{ secrets.GITHUB_TOKEN }}
38-
# minimum_coverage: 0
3929

4030
# Test code gen for visual studio compatibility >> https://github.com/kubernetes-client/csharp/pull/1008
4131
codgen:
@@ -62,18 +52,13 @@ jobs:
6252
- uses: actions/checkout@v3
6353
with:
6454
fetch-depth: 0
65-
- name: Setup dotnet SDK 3.1
66-
uses: actions/setup-dotnet@v2
67-
with:
68-
dotnet-version: '3.1.x'
69-
- name: Setup dotnet SDK 5
70-
uses: actions/setup-dotnet@v2
71-
with:
72-
dotnet-version: '5.0.x'
73-
- name: Setup dotnet SDK 6
55+
- name: Setup dotnet
7456
uses: actions/setup-dotnet@v2
7557
with:
76-
dotnet-version: '6.0.x'
58+
dotnet-version: |
59+
3.1.x
60+
5.0.x
61+
6.0.x
7762
- name: Minikube
7863
run: minikube start
7964
- name: Test

.github/workflows/codeql-analysis.yml

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -25,18 +25,13 @@ jobs:
2525
with:
2626
fetch-depth: 0
2727

28-
- name: Setup dotnet SDK 3.1
28+
- name: Setup dotnet
2929
uses: actions/setup-dotnet@v2
3030
with:
31-
dotnet-version: '3.1.x'
32-
- name: Setup dotnet SDK 5
33-
uses: actions/setup-dotnet@v2
34-
with:
35-
dotnet-version: '5.0.x'
36-
- name: Setup dotnet SDK 6
37-
uses: actions/setup-dotnet@v2
38-
with:
39-
dotnet-version: '6.0.x'
31+
dotnet-version: |
32+
3.1.x
33+
5.0.x
34+
6.0.x
4035
4136
# Initializes the CodeQL tools for scanning.
4237
- name: Initialize CodeQL

.github/workflows/draft.yaml

Lines changed: 5 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -14,20 +14,13 @@ jobs:
1414
with:
1515
fetch-depth: 0
1616

17-
- name: .NET Core 3.1.x SDK
17+
- name: Setup dotnet
1818
uses: actions/setup-dotnet@v2
1919
with:
20-
dotnet-version: 3.1.x
21-
22-
- name: .NET 5.x SDK
23-
uses: actions/setup-dotnet@v2
24-
with:
25-
dotnet-version: 5.0.x
26-
27-
- name: .NET 6.x SDK
28-
uses: actions/setup-dotnet@v2
29-
with:
30-
dotnet-version: 6.0.x
20+
dotnet-version: |
21+
3.1.x
22+
5.0.x
23+
6.0.x
3124
3225
- name: dotnet restore
3326
run: dotnet restore --verbosity minimal --configfile nuget.config

.github/workflows/nuget.yaml

Lines changed: 5 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -14,20 +14,13 @@ jobs:
1414
with:
1515
fetch-depth: 0
1616

17-
- name: .NET Core 3.1.x SDK
17+
- name: Setup dotnet
1818
uses: actions/setup-dotnet@v2
1919
with:
20-
dotnet-version: 3.1.x
21-
22-
- name: .NET 5.x SDK
23-
uses: actions/setup-dotnet@v2
24-
with:
25-
dotnet-version: 5.0.x
26-
27-
- name: .NET 6.x SDK
28-
uses: actions/setup-dotnet@v2
29-
with:
30-
dotnet-version: 6.0.x
20+
dotnet-version: |
21+
3.1.x
22+
5.0.x
23+
6.0.x
3124
3225
- name: dotnet restore
3326
run: dotnet restore --verbosity minimal --configfile nuget.config

0 commit comments

Comments
 (0)