Skip to content

chore(deps): bump HeraldCoreVersion pin 0.10.4 → 0.11.0 #13

chore(deps): bump HeraldCoreVersion pin 0.10.4 → 0.11.0

chore(deps): bump HeraldCoreVersion pin 0.10.4 → 0.11.0 #13

Workflow file for this run

name: ci-dotnet
# Build + test every sink in Herald.Sinks.slnx on every push to main
# and every PR. The contract test under tests/Herald.Sinks.Contract.Tests/
# validates the per-sink shape (PackageId/AssemblyName/namespace alignment,
# Directory.Build.props conditional Herald.OSS reference); it runs as part
# of the regular test step.
#
# Gated on Herald.OSS availability on nuget.org — every sink depends on
# it via Directory.Build.props. Until the first Herald.OSS publish lands,
# the preflight short-circuits the build with a ::warning::, keeping CI
# visually quiet. Auto-recovers the moment Herald.OSS appears on
# nuget.org; no file change needed once the package lands.
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
preflight:
runs-on: ubuntu-latest
outputs:
herald_oss_available: ${{ steps.check.outputs.available }}
steps:
- name: Check Herald.OSS is on nuget.org
id: check
run: |
if curl -sf https://api.nuget.org/v3-flatcontainer/herald.oss/index.json > /dev/null; then
echo "available=true" >> "$GITHUB_OUTPUT"
echo "Herald.OSS found on nuget.org — proceeding with build."
else
echo "available=false" >> "$GITHUB_OUTPUT"
echo "::warning::Herald.OSS is not yet on nuget.org. CI build+test skipped until the first Herald.OSS publish. No file change is needed once Herald.OSS lands — the next push will resume normal CI."
fi
build-and-test:
needs: preflight
if: needs.preflight.outputs.herald_oss_available == 'true'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
- uses: actions/setup-dotnet@v5
with:
dotnet-version: |
8.0.x
9.0.x
10.0.x
- run: dotnet restore Herald.Sinks.slnx
- run: dotnet build Herald.Sinks.slnx --configuration Release --no-restore
- run: dotnet test Herald.Sinks.slnx --configuration Release --no-build --verbosity normal