Skip to content

Commit

Permalink
chore: synced file(s) with prom-client-net/prom-client-tmpl (#92)
Browse files Browse the repository at this point in the history
  • Loading branch information
phnx47-bot committed Jun 15, 2024
1 parent 00b9fb2 commit 8ab3637
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .github/settings.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ branches:
required_pull_request_reviews: null
required_status_checks:
strict: false
contexts: ['Build & Test']
contexts: ['Build & Test (Windows)', 'Build, Test & Pack (Linux)']
enforce_admins: false
required_linear_history: false
restrictions: null
2 changes: 1 addition & 1 deletion .github/workflows/automerge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ permissions:
jobs:
automerge:
name: Enable auto-merge
runs-on: ubuntu-22.04
runs-on: ubuntu-24.04
if: github.actor == 'phnx47-bot' && contains(github.event.pull_request.labels.*.name, 'sync')
steps:
- name: Checkout
Expand Down
33 changes: 27 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,29 @@ on:
workflow_dispatch:

jobs:
build:
name: Build & Test
build-windows:
name: Build & Test (Windows)
runs-on: windows-2022
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: |
2.1.x
3.1.x
5.0.x
6.0.x
7.0.x
8.0.x
- name: Run tests
run: dotnet test -c Release -p:CollectCoverage=false

build-linux:
name: Build, Test & Pack (Linux)
runs-on: ubuntu-22.04
steps:
- name: Checkout
Expand Down Expand Up @@ -73,9 +94,9 @@ jobs:

github:
name: Deploy to GitHub
needs: [build]
needs: [build-windows, build-linux]
if: github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/tags/v')
runs-on: ubuntu-22.04
runs-on: ubuntu-24.04
steps:
- name: Download artifacts
uses: actions/download-artifact@v4
Expand All @@ -86,9 +107,9 @@ jobs:

nuget:
name: Deploy to NuGet
needs: [build]
needs: [build-windows, build-linux]
if: startsWith(github.ref, 'refs/tags/v')
runs-on: ubuntu-22.04
runs-on: ubuntu-24.04
steps:
- name: Download artifacts
uses: actions/download-artifact@v4
Expand Down

0 comments on commit 8ab3637

Please sign in to comment.