Skip to content

Commit 68205b7

Browse files
authored
sync: synced file(s) with prom-client-net/prom-client-tmpl (#136)
1 parent e484924 commit 68205b7

File tree

3 files changed

+27
-16
lines changed

3 files changed

+27
-16
lines changed

.github/settings.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ branches:
6161
required_pull_request_reviews: null
6262
required_status_checks:
6363
strict: false
64-
contexts: ['Build & Test (Windows)', 'Build, Test & Pack (Linux)']
64+
contexts: ['Build, Test & Pack (Linux)']
6565
enforce_admins: false
6666
required_linear_history: false
6767
restrictions: null

.github/workflows/ci.yml renamed to .github/workflows/ci-linux.yml

Lines changed: 5 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: CI
1+
name: CI Linux
22

33
on:
44
push:
@@ -12,16 +12,6 @@ on:
1212
workflow_dispatch:
1313

1414
jobs:
15-
build-windows:
16-
name: Build & Test (Windows)
17-
runs-on: windows-2022
18-
steps:
19-
- name: Checkout
20-
uses: actions/checkout@v4
21-
22-
- name: Run tests
23-
run: dotnet test -c Release --filter FullyQualifiedName\!~Tests.Integration -p:CollectCoverage=false
24-
2515
build-linux:
2616
name: Build, Test & Pack (Linux)
2717
runs-on: ubuntu-24.04
@@ -42,7 +32,7 @@ jobs:
4232
run: dotnet build -c Release -p:ContinuousIntegrationBuild=true
4333

4434
- name: Run tests
45-
run: dotnet test --no-build -c Release --filter FullyQualifiedName\!~Tests.Integration -p:CollectCoverage=true -e:CoverletOutputFormat=opencover
35+
run: dotnet test --no-build -c Release -p:CollectCoverage=true -e:CoverletOutputFormat=opencover
4636

4737
- name: Publish to Codecov
4838
uses: codecov/codecov-action@v5
@@ -76,7 +66,7 @@ jobs:
7666

7767
github:
7868
name: Deploy to GitHub
79-
needs: [build-windows, build-linux]
69+
needs: [build-linux]
8070
if: github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/tags/v')
8171
runs-on: ubuntu-24.04
8272
steps:
@@ -85,11 +75,11 @@ jobs:
8575
with:
8676
name: nupkgs
8777
- name: Push to pkg.github.com
88-
run: dotnet nuget push "**/*.nupkg" -s https://nuget.pkg.github.com/${{ github.repository_owner }}/index.json -k ${{ secrets.GH_FULL_PAT }}
78+
run: dotnet nuget push "**/*.nupkg" -s https://nuget.pkg.github.com/${{ github.repository_owner }}/index.json -k ${{ secrets.GH_FULL_PAT }} --skip-duplicate
8979

9080
nuget:
9181
name: Deploy to NuGet
92-
needs: [build-windows, build-linux]
82+
needs: [build-linux]
9383
if: startsWith(github.ref, 'refs/tags/v')
9484
runs-on: ubuntu-24.04
9585
steps:

.github/workflows/ci-windows.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: CI Windows
2+
3+
on:
4+
push:
5+
branches:
6+
- "main"
7+
pull_request:
8+
branches:
9+
- "main"
10+
workflow_dispatch:
11+
12+
jobs:
13+
build-windows:
14+
name: Build & Test (Windows)
15+
runs-on: windows-2022
16+
steps:
17+
- name: Checkout
18+
uses: actions/checkout@v4
19+
20+
- name: Run tests
21+
run: dotnet test -c Release -p:CollectCoverage=false

0 commit comments

Comments
 (0)