Skip to content

Bump DavidAnson/markdownlint-cli2-action from 17 to 18 (#586) #109

Bump DavidAnson/markdownlint-cli2-action from 17 to 18 (#586)

Bump DavidAnson/markdownlint-cli2-action from 17 to 18 (#586) #109

Workflow file for this run

name: benchmark-ci
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@v4
- name: Setup .NET SDK
uses: actions/setup-dotnet@v4
- name: Run benchmarks
shell: pwsh
run: ./benchmark.ps1 -Job Short
- name: Publish BenchmarkDotNet artifacts
uses: actions/upload-artifact@v4
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@v1
with:
branch: ${{ github.ref_name }}
comment-on-threshold: true
name: 'Project Euler'
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}