Bump the typescript-eslint group (#1890) #97
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 -Filter "*2016*" -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: 'Advent of Code' | |
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} |