Skip to content

Bump Verify.XunitV3 from 28.6.1 to 28.7.0 (#2974) #174

Bump Verify.XunitV3 from 28.6.1 to 28.7.0 (#2974)

Bump Verify.XunitV3 from 28.6.1 to 28.7.0 (#2974) #174

Workflow file for this run

name: benchmark
env:
DOTNET_CLI_TELEMETRY_OPTOUT: true
DOTNET_NOLOGO: true
DOTNET_SYSTEM_CONSOLE_ALLOW_ANSI_COLOR_REDIRECTION: 1
NUGET_XMLDOC_MODE: skip
TERM: xterm
on:
push:
branches:
- main
- dotnet-vnext
- dotnet-nightly
paths-ignore:
- '**/*.gitattributes'
- '**/*.gitignore'
- '**/*.md'
workflow_dispatch:
permissions:
contents: read
jobs:
benchmark:
name: benchmark
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: Setup .NET SDK
uses: actions/setup-dotnet@3e891b0cb619bf60e2c25674b222b8940e2c1c25 # v4.1.0
- name: Setup Node
uses: actions/setup-node@39370e3970a6d050c480ffad4ff0ed4d3fdee5af # v4.1.0
with:
node-version: '20'
- name: Run benchmarks
shell: pwsh
run: ./benchmark.ps1
- name: Publish BenchmarkDotNet artifacts
uses: actions/upload-artifact@6f51ac03b9356f520e9adb1b1b7802705f340c2b # v4.5.0
if: ${{ !cancelled() }}
with:
name: artifacts
path: ./BenchmarkDotNet.Artifacts/results/*
if-no-files-found: error
- name: Get repository name
id: get-repo-name
shell: pwsh
run: |
$repoName = ${env:GITHUB_REPOSITORY}.Split("/")[-1]
"repo-name=${repoName}" >> ${env:GITHUB_OUTPUT}
- name: Publish results
uses: martincostello/benchmarkdotnet-results-publisher@2090db9dca99a23ff464351db28aa6c6bf1a4746 # v1.0.1
with:
branch: ${{ github.ref_name }}
comment-on-threshold: true
name: LondonTravel.Site
output-file-path: '${{ steps.get-repo-name.outputs.repo-name }}/data.json'
repo: '${{ github.repository_owner }}/benchmarks'
repo-token: ${{ secrets.BENCHMARKS_TOKEN }}
- name: Output summary
shell: pwsh
env:
REPO_NAME: ${{ steps.get-repo-name.outputs.repo-name }}
run: |
$summary += "`n`n"
$summary += "View benchmark results history [here](https://benchmarks.martincostello.com/?repo=${env:REPO_NAME}&branch=${env:GITHUB_REF_NAME})."
$summary >> ${env:GITHUB_STEP_SUMMARY}