Bump Microsoft.NET.Test.Sdk from 17.10.0 to 17.11.1 #292
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: all the things | |
on: | |
push: | |
branches: [ main ] | |
pull_request: | |
branches: [ main ] | |
workflow_dispatch: | |
env: | |
DOTNET_NOLOGO: true | |
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: true | |
DOTNET_CLI_TELEMETRY_OPTOUT: true | |
DOTNET_FRAMEWORK: net8.0 | |
DOTNET_VERSION: 8.0.x | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: π§ Checkout | |
uses: actions/checkout@main | |
with: | |
fetch-depth: 0 # avoid shallow clone so nbgv can do its work | |
- name: π¨ Setup dotnet | |
uses: actions/setup-dotnet@v4 | |
with: | |
dotnet-version: ${{ env.DOTNET_VERSION }} | |
- name: ποΈ Run dotnet build | |
id: build | |
run: dotnet build -c release | |
- name: π¨ Run dotnet format | |
id: format | |
run: dotnet format --verbosity diagnostic --verify-no-changes --no-restore | |
- name: π§ͺ Run dotnet test | |
id: test | |
run: dotnet test -c release --no-restore | |
benchmark: | |
if: ${{ github.event_name == 'push' }} | |
needs: [ build ] | |
runs-on: ubuntu-latest | |
steps: | |
- name: π§ Checkout | |
uses: actions/checkout@main | |
with: | |
fetch-depth: 0 | |
- name: π¨ Setup dotnet | |
uses: actions/setup-dotnet@v4 | |
with: | |
dotnet-version: ${{ env.DOTNET_VERSION }} | |
- name: β Run benchmarks | |
id: run-benchmarks | |
run: | | |
dotnet run \ | |
--framework ${{ env.DOTNET_FRAMEWORK }} \ | |
--configuration release \ | |
--project ./tests/Lolcat.Benchmarks/Lolcat.Benchmarks.csproj | |
- name: π Store benchmarks | |
id: store-benchmarks | |
uses: benchmark-action/[email protected] | |
with: | |
name: Benchmarks | |
tool: benchmarkdotnet | |
output-file-path: BenchmarkDotNet.Artifacts/results/Lolcat.Benchmarks.Benchmarks-report.json | |
github-token: ${{ secrets.GITHUB_TOKEN }} | |
auto-push: true | |
publish: | |
if: ${{ github.event_name == 'workflow_dispatch' }} | |
needs: [ build ] | |
runs-on: ubuntu-latest | |
steps: | |
- name: π§ Checkout | |
uses: actions/checkout@main | |
with: | |
fetch-depth: 0 | |
- name: π¨ Setup dotnet | |
uses: actions/setup-dotnet@v4 | |
with: | |
dotnet-version: ${{ env.DOTNET_VERSION }} | |
- name: π¦οΈ Package | |
run: dotnet pack -c release ./src/Lolcat/Lolcat.csproj | |
- name: π Publish | |
run: dotnet nuget push ./src/Lolcat/**/*.nupkg -k $NUGET_AUTH_TOKEN -s https://api.nuget.org/v3/index.json | |
env: | |
NUGET_AUTH_TOKEN: ${{ secrets.NUGET_TOKEN }} |