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:
Boshi Lian
2020-03-13 21:58:34 -07:00
committed by GitHub
parent c8de0ca263
commit c1bab3caed
4 changed files with 15 additions and 134 deletions

View File

@@ -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:

View File

@@ -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