Skip to content

Bump NUnit3TestAdapter from 5.1.0 to 5.2.0 #32

Bump NUnit3TestAdapter from 5.1.0 to 5.2.0

Bump NUnit3TestAdapter from 5.1.0 to 5.2.0 #32

Workflow file for this run

name: .NET
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: 8.0.x
- name: Restore dependencies
run: dotnet restore
- name: Build
run: dotnet build --no-restore --configuration Release
- name: Test
run: dotnet test --no-build --configuration Release --verbosity normal
benchmark:
runs-on: ubuntu-latest
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
needs: build
steps:
- uses: actions/checkout@v4
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: 8.0.x
- name: Restore dependencies
run: dotnet restore
- name: Run Benchmarks
run: |
cd StrongTypedCache.Benchmarks
# Use shorter job for CI to save time
dotnet run -c Release -- --job short --exporters json markdown html
- name: Upload Benchmark Results
uses: actions/upload-artifact@v4
if: always()
with:
name: benchmark-results
path: StrongTypedCache.Benchmarks/BenchmarkDotNet.Artifacts/results/
retention-days: 30