Merge pull request #69 from ndsvw/dependabot/nuget/MSTest-3.4.3 #225
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: .NET | |
on: | |
push: | |
branches: [ main ] | |
pull_request: | |
branches: [ main ] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Setup .NET | |
uses: actions/setup-dotnet@v3 | |
with: | |
dotnet-version: 8.0.x | |
- name: Restore dependencies | |
run: dotnet restore | |
- name: Build (Debug) | |
run: dotnet build --no-restore | |
- name: Build (Release) | |
run: dotnet build --configuration Release --no-restore | |
- name: Test | |
run: dotnet test --no-build --verbosity normal --collect:"XPlat Code Coverage" | |
- name: Benchmark | |
run: dotnet run -c Release --project FluentRandomPicker.Benchmarks/FluentRandomPicker.Benchmarks.csproj | |
- name: Codecov | |
uses: codecov/codecov-action@v3 |