following up after switching to gh action (#367)
* disable az pipeline * disable ci coverage report * do test before push * remove push nuget from travis * fix coverage ignore
This commit is contained in:
12
.github/workflows/dotnet.yaml
vendored
12
.github/workflows/dotnet.yaml
vendored
@@ -17,12 +17,12 @@ jobs:
|
||||
dotnet-version: 2.2.108
|
||||
- run: dotnet build --configuration Release
|
||||
- name: test with dotnet
|
||||
run: dotnet test /p:CollectCoverage=true /p:Exclude="[KubernetesClient]k8s.Models.*" /p:Exclude="[KubernetesClient]k8s.Internal.*" /p:CollectCoverage=true /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
|
||||
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
|
||||
|
||||
on:
|
||||
pull_request:
|
||||
|
||||
2
.github/workflows/nuget.yaml
vendored
2
.github/workflows/nuget.yaml
vendored
@@ -15,6 +15,8 @@ jobs:
|
||||
uses: actions/setup-dotnet@v1
|
||||
with:
|
||||
dotnet-version: 2.2.108
|
||||
- name: test with dotnet
|
||||
run: dotnet test
|
||||
- name: pack
|
||||
run: dotnet pack --configuration Release src/KubernetesClient -o pkg
|
||||
- name: push
|
||||
|
||||
Reference in New Issue
Block a user