add remote resource support #93
Workflow file for this run
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: Tests | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
permissions: | |
pull-requests: write #allow benchmark-action to comment on PRs | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Install .NET | |
uses: actions/setup-dotnet@v4 | |
- name: Build & test | |
run: dotnet test --configuration Release --logger GitHubActions | |
- name: Download previous benchmark data | |
uses: actions/cache@v4 | |
with: | |
path: ./cache | |
key: ${{ runner.os }}-benchmark | |
- name: Continuous Benchmark | |
uses: benchmark-action/[email protected] | |
with: | |
tool: benchmarkdotnet | |
output-file-path: src/artifacts/bin/SIL.Harmony.Tests/release/BenchmarkDotNet.Artifacts/results/SIL.Harmony.Tests.DataModelPerformanceBenchmarks-report-full-compressed.json | |
external-data-json-path: ./cache/benchmark-data.json | |
fail-on-alert: true | |
comment-on-alert: true | |
github-token: ${{ secrets.GITHUB_TOKEN }} | |