add net6 targets (#745)

* add net6 targets

* move to net6 builtin format

* e2e target

* make codeql happy
This commit is contained in:
Boshi Lian
2021-11-15 19:39:25 -08:00
committed by GitHub
parent f515fb4d76
commit e45fa773ba
6 changed files with 31 additions and 11 deletions

View File

@@ -11,10 +11,6 @@ jobs:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Setup dotnet SDK 2.1
uses: actions/setup-dotnet@v1
with:
dotnet-version: '2.1.x'
- name: Setup dotnet SDK 3.1
uses: actions/setup-dotnet@v1
with:
@@ -23,12 +19,14 @@ jobs:
uses: actions/setup-dotnet@v1
with:
dotnet-version: '5.0.x'
- name: Setup Format
run: dotnet tool install -g dotnet-format
- name: Setup dotnet SDK 6
uses: actions/setup-dotnet@v1
with:
dotnet-version: '6.0.x'
- name: Check Format
# don't check formatting on Windows b/c of CRLF issues.
if: matrix.os != 'windows-latest'
run: dotnet format --check --exclude ./src/KubernetesClient/generated/
if: matrix.os == 'ubuntu-latest'
run: dotnet format --severity error --verify-no-changes --exclude ./src/KubernetesClient/generated/
- name: Build
run: dotnet build --configuration Release
- name: Test
@@ -52,6 +50,10 @@ jobs:
uses: actions/setup-dotnet@v1
with:
dotnet-version: '5.0.x'
- name: Setup dotnet SDK 6
uses: actions/setup-dotnet@v1
with:
dotnet-version: '6.0.x'
- name: Minikube
run: minikube start
- name: Test

View File

@@ -25,6 +25,19 @@ jobs:
with:
fetch-depth: 0
- name: Setup dotnet SDK 3.1
uses: actions/setup-dotnet@v1
with:
dotnet-version: '3.1.x'
- name: Setup dotnet SDK 5
uses: actions/setup-dotnet@v1
with:
dotnet-version: '5.0.x'
- name: Setup dotnet SDK 6
uses: actions/setup-dotnet@v1
with:
dotnet-version: '6.0.x'
# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@v1

View File

@@ -24,6 +24,11 @@ jobs:
with:
dotnet-version: 5.0.x
- name: .NET 6.x SDK
uses: actions/setup-dotnet@v1
with:
dotnet-version: 6.0.x
- name: dotnet restore
run: dotnet restore --verbosity minimal --configfile nuget.config