Skip to content

Bump YamlDotNet from 16.3.0 to 17.1.0 #2567

Bump YamlDotNet from 16.3.0 to 17.1.0

Bump YamlDotNet from 16.3.0 to 17.1.0 #2567

Workflow file for this run

name: pr_validation
on:
push:
branches:
- master
- dev
- main
pull_request:
branches:
- master
- dev
- main
permissions:
contents: read
jobs:
test:
name: Test-${{matrix.os}}
runs-on: ${{matrix.os}}
timeout-minutes: 30
strategy:
matrix:
os: [ubuntu-latest, windows-latest]
steps:
- name: "Checkout"
uses: actions/checkout@v6
with:
lfs: true
fetch-depth: 0
- name: "Install .NET SDK"
uses: actions/setup-dotnet@v5.2.0
with:
global-json-file: "./global.json"
- name: "Restore .NET tools"
run: dotnet tool restore
- name: "Update release notes"
shell: pwsh
run: |
./build.ps1
- name: "dotnet build"
run: dotnet build -c Release
# Pre-warm the npm cache so MCP stdio smoke tests don't time out downloading
# @modelcontextprotocol/server-everything on the first npx invocation.
- name: "Warm npm cache for MCP smoke tests"
shell: bash
run: npx -y @modelcontextprotocol/server-everything --version || true
# .NET Framework tests can't run reliably on Linux, so we only do .NET 8
- name: "dotnet test"
shell: bash
run: dotnet test -c Release
- name: "Publish CLI (single-file, self-contained)"
if: runner.os == 'Linux'
run: >
dotnet publish src/Netclaw.Cli/Netclaw.Cli.csproj
-c Release
-r linux-x64
--self-contained true
/p:PublishSingleFile=true
/p:EnableCompressionInSingleFile=true
/p:IncludeNativeLibrariesForSelfExtract=true
-o ./publish/cli
- name: "Package and stage CLI binary (simulate release install)"
if: runner.os == 'Linux'
shell: bash
run: |
mkdir -p ./archives ./install-test
tar czf ./archives/netclaw-test.tar.gz -C ./publish/cli netclaw
tar xzf ./archives/netclaw-test.tar.gz -C ./install-test
- name: "CLI smoke tests"
if: runner.os == 'Linux'
shell: bash
run: bash scripts/smoke/cli-smoke.sh
env:
NETCLAW_CLI: ./install-test/netclaw
copyright-headers:
name: Copyright Headers
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- name: "Checkout"
uses: actions/checkout@v6
with:
fetch-depth: 1
- name: "Verify copyright headers"
shell: pwsh
run: ./scripts/Add-FileHeaders.ps1 -Verify
slopwatch:
name: Slopwatch
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- name: "Checkout"
uses: actions/checkout@v6
with:
fetch-depth: 0
- name: "Install .NET SDK"
uses: actions/setup-dotnet@v5.2.0
with:
global-json-file: "./global.json"
- name: "Restore .NET tools"
run: dotnet tool restore
- name: "slopwatch analyze"
run: dotnet slopwatch analyze