Parallel notifications, correct ordering for switch statement cases #282
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: Build | |
on: | |
workflow_dispatch: | |
push: | |
branches: [ main, release/v** ] | |
paths-ignore: | |
- 'README.md' | |
- 'LICENSE' | |
- 'img/**' | |
- 'benchmarks/**' | |
- 'samples/**' | |
- '*.sln' | |
pull_request: | |
branches: [ main ] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
fetch-depth: 0 # depth is needed for nbgv | |
- uses: dotnet/nbgv@master | |
with: | |
setAllVars: true | |
- name: Setup .NET | |
uses: actions/setup-dotnet@v1 | |
with: | |
dotnet-version: '8.0.x' | |
include-prerelease: false | |
- name: Restore dependencies | |
run: dotnet restore | |
- name: Build Debug - TaskWhenAllNotificationPublisher | |
run: dotnet build --no-restore -p:ExtraDefineConstants=TASKWHENALLPUBLISHER | |
- name: Test Debug - TaskWhenAllNotificationPublisher | |
run: dotnet test --no-restore --no-build --logger "console;verbosity=detailed" | |
- name: Clean Debug | |
run: dotnet clean | |
- name: Build Debug | |
run: dotnet build --no-restore | |
- name: Test Debug | |
run: dotnet test --no-restore --no-build --logger "console;verbosity=detailed" | |
- name: Build Release | |
run: dotnet build --no-restore -c Release | |
- name: Test Release | |
run: dotnet test --no-restore --no-build -c Release --logger "console;verbosity=detailed" | |
- name: Pack | |
if: ${{ success() && !github.base_ref }} | |
run: | | |
dotnet pack src/Mediator/Mediator.csproj --no-restore --no-build --verbosity normal -c Release -o artifacts/ && \ | |
dotnet pack src/Mediator.SourceGenerator/Mediator.SourceGenerator.csproj --no-restore --no-build --verbosity normal -c Release -o artifacts/ | |
- name: Push to NuGet | |
if: ${{ success() && !github.base_ref }} | |
run: dotnet nuget push artifacts/**.nupkg -s https://api.nuget.org/v3/index.json --api-key ${{secrets.NUGET_API_KEY}} |