File tree Expand file tree Collapse file tree 3 files changed +30
-19
lines changed
Expand file tree Collapse file tree 3 files changed +30
-19
lines changed Original file line number Diff line number Diff line change 1- name : πΏ CI Branch
1+ name : πΏ CI PR
22
33on :
4- push :
5- branches-ignore :
6- - " master"
74 pull_request :
85 branches :
96 - " master"
107
118jobs :
12- build-branch :
13- name : π Build Branch
9+ build-pr :
10+ name : π Build PR
1411 runs-on : ubuntu-20.04
1512 steps :
1613 - name : π Checkout
17- uses : actions/checkout@master
14+ uses : actions/checkout@v2
1815 - name : π Setup .NET Core
19- uses : actions/setup-dotnet@master
16+ uses : actions/setup-dotnet@v1
2017 - name : β Restore
2118 run : dotnet restore
2219 - name : π Build
23- run : dotnet build --no-restore -c Release
20+ run : dotnet build --no-restore -c Release /p:ContinuousIntegrationBuild=true
21+ - name : π§ͺ Run tests
22+ run : dotnet test --no-build -c Release --filter FullyQualifiedName\!~Tests.Integration /p:CollectCoverage=true /p:CoverletOutputFormat=opencover
23+ - name : β’ Publish to Codecov
24+ uses : codecov/codecov-action@v2
Original file line number Diff line number Diff line change @@ -3,23 +3,27 @@ name: πΏ CI Master
33on :
44 push :
55 branches :
6- - ' master'
6+ - " master"
77
88jobs :
99 build-master :
1010 name : π Build Master
1111 runs-on : ubuntu-20.04
1212 steps :
1313 - name : π Checkout
14- uses : actions/checkout@master
14+ uses : actions/checkout@v2
1515 - name : π Setup .NET Core
16- uses : actions/setup-dotnet@master
16+ uses : actions/setup-dotnet@v1
1717 - name : β Restore
1818 run : dotnet restore
1919 - name : π Build
20- run : dotnet build --no-restore -c Release
20+ run : dotnet build --no-restore -c Release /p:ContinuousIntegrationBuild=true
21+ - name : π§ͺ Run tests
22+ run : dotnet test --no-build -c Release --filter FullyQualifiedName\!~Tests.Integration /p:CollectCoverage=true /p:CoverletOutputFormat=opencover
23+ - name : β’ Publish to Codecov
24+ uses : codecov/codecov-action@v2
2125 - name : π Pack artifacts
22- run : dotnet pack src/* --no-build -c Release --version-suffix dev-$(date +%s) -o artifacts/
26+ run : dotnet pack --no-build -c Release --version-suffix dev-$(date +%s) -o artifacts/
2327 - name : π Publish artifacts
2428 uses : actions/upload-artifact@v2
2529 with :
Original file line number Diff line number Diff line change @@ -11,19 +11,25 @@ jobs:
1111 runs-on : ubuntu-20.04
1212 steps :
1313 - name : π Checkout
14- uses : actions/checkout@master
14+ uses : actions/checkout@v2
1515 - name : π Setup .NET Core
16- uses : actions/setup-dotnet@master
16+ uses : actions/setup-dotnet@v1
1717 - name : β Restore
1818 run : dotnet restore
1919 - name : π Build
20- run : dotnet build --no-restore -c Release
20+ run : dotnet build --no-restore -c Release /p:ContinuousIntegrationBuild=true
21+ - name : π§ͺ Run tests
22+ run : dotnet test --no-build -c Release --filter FullyQualifiedName\!~Tests.Integration /p:CollectCoverage=true /p:CoverletOutputFormat=opencover
23+ - name : β’ Publish to Codecov
24+ uses : codecov/codecov-action@v2
2125 - name : π Pack artifacts
22- run : dotnet pack src/* -c Release --no-build -o artifacts/
26+ run : dotnet pack -c Release --no-build -o artifacts/
2327 - name : π Publish artifacts
2428 uses : actions/upload-artifact@v2
2529 with :
2630 name : nupkg
2731 path : artifacts/*
32+ - name : π¦ Publish to GitHub
33+ run : dotnet nuget push "artifacts/*.nupkg" -s https://nuget.pkg.github.com/prom-client-net/index.json -k ${{ secrets.GH_DEPLOY_KEY }} --skip-duplicate
2834 - name : π¦ Publish to NuGet
29- run : dotnet nuget push "artifacts/*.nupkg" --api-key ${{ secrets.NUGET_DEPLOY_KEY }} --source https://api.nuget.org/v3/index.json
35+ run : dotnet nuget push "artifacts/*.nupkg" -k ${{ secrets.NUGET_DEPLOY_KEY }} -s https://api.nuget.org/v3/index.json
You canβt perform that action at this time.
0 commit comments