Skip to content

Commit 0861c22

Browse files
πŸ”„ Synced local '.github/workflows/' with remote 'workflows/'
1 parent 69dffad commit 0861c22

File tree

3 files changed

+30
-19
lines changed

3 files changed

+30
-19
lines changed

β€Ž.github/workflows/branch.ymlβ€Ž

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,24 @@
1-
name: πŸ’Ώ CI Branch
1+
name: πŸ’Ώ CI PR
22

33
on:
4-
push:
5-
branches-ignore:
6-
- "master"
74
pull_request:
85
branches:
96
- "master"
107

118
jobs:
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

β€Ž.github/workflows/master.ymlβ€Ž

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,23 +3,27 @@ name: πŸ’Ώ CI Master
33
on:
44
push:
55
branches:
6-
- 'master'
6+
- "master"
77

88
jobs:
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:

β€Ž.github/workflows/production.ymlβ€Ž

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
Β (0)