Skip to content

Commit

Permalink
simplify setup dotnet (#1043)
Browse files Browse the repository at this point in the history
  • Loading branch information
tg123 authored Oct 3, 2022
1 parent 8888a16 commit d9c5c73
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 59 deletions.
35 changes: 10 additions & 25 deletions .github/workflows/buildtest.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,18 +11,13 @@ jobs:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Setup dotnet SDK 3.1
- name: Setup dotnet
uses: actions/setup-dotnet@v2
with:
dotnet-version: '3.1.x'
- name: Setup dotnet SDK 5
uses: actions/setup-dotnet@v2
with:
dotnet-version: '5.0.x'
- name: Setup dotnet SDK 6
uses: actions/setup-dotnet@v2
with:
dotnet-version: '6.0.x'
dotnet-version: |
3.1.x
5.0.x
6.0.x
# - name: Check Format
# # don't check formatting on Windows b/c of CRLF issues.
# if: matrix.os == 'ubuntu-latest'
Expand All @@ -31,11 +26,6 @@ jobs:
run: dotnet build --configuration Release -v detailed
- name: Test
run: dotnet test /p:CollectCoverage=true /p:ExcludeByFile=\"**/KubernetesClient/generated/**/*.cs\" /p:CoverletOutputFormat="cobertura"
# - uses: 5monkeys/cobertura-action@master
# with:
# path: tests/KubernetesClient.Tests/coverage.netcoreapp2.1.cobertura.xml
# repo_token: ${{ secrets.GITHUB_TOKEN }}
# minimum_coverage: 0

# Test code gen for visual studio compatibility >> https://github.com/kubernetes-client/csharp/pull/1008
codgen:
Expand All @@ -62,18 +52,13 @@ jobs:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Setup dotnet SDK 3.1
uses: actions/setup-dotnet@v2
with:
dotnet-version: '3.1.x'
- name: Setup dotnet SDK 5
uses: actions/setup-dotnet@v2
with:
dotnet-version: '5.0.x'
- name: Setup dotnet SDK 6
- name: Setup dotnet
uses: actions/setup-dotnet@v2
with:
dotnet-version: '6.0.x'
dotnet-version: |
3.1.x
5.0.x
6.0.x
- name: Minikube
run: minikube start
- name: Test
Expand Down
15 changes: 5 additions & 10 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,18 +25,13 @@ jobs:
with:
fetch-depth: 0

- name: Setup dotnet SDK 3.1
- name: Setup dotnet
uses: actions/setup-dotnet@v2
with:
dotnet-version: '3.1.x'
- name: Setup dotnet SDK 5
uses: actions/setup-dotnet@v2
with:
dotnet-version: '5.0.x'
- name: Setup dotnet SDK 6
uses: actions/setup-dotnet@v2
with:
dotnet-version: '6.0.x'
dotnet-version: |
3.1.x
5.0.x
6.0.x
# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
Expand Down
17 changes: 5 additions & 12 deletions .github/workflows/draft.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,20 +14,13 @@ jobs:
with:
fetch-depth: 0

- name: .NET Core 3.1.x SDK
- name: Setup dotnet
uses: actions/setup-dotnet@v2
with:
dotnet-version: 3.1.x

- name: .NET 5.x SDK
uses: actions/setup-dotnet@v2
with:
dotnet-version: 5.0.x

- name: .NET 6.x SDK
uses: actions/setup-dotnet@v2
with:
dotnet-version: 6.0.x
dotnet-version: |
3.1.x
5.0.x
6.0.x
- name: dotnet restore
run: dotnet restore --verbosity minimal --configfile nuget.config
Expand Down
17 changes: 5 additions & 12 deletions .github/workflows/nuget.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,20 +14,13 @@ jobs:
with:
fetch-depth: 0

- name: .NET Core 3.1.x SDK
- name: Setup dotnet
uses: actions/setup-dotnet@v2
with:
dotnet-version: 3.1.x

- name: .NET 5.x SDK
uses: actions/setup-dotnet@v2
with:
dotnet-version: 5.0.x

- name: .NET 6.x SDK
uses: actions/setup-dotnet@v2
with:
dotnet-version: 6.0.x
dotnet-version: |
3.1.x
5.0.x
6.0.x
- name: dotnet restore
run: dotnet restore --verbosity minimal --configfile nuget.config
Expand Down

0 comments on commit d9c5c73

Please sign in to comment.