Fix typo #22
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 DMediatR.nupkg | |
on: | |
workflow_dispatch: | |
workflow_call: | |
push: | |
branches: | |
- main | |
jobs: | |
build: | |
runs-on: windows-latest | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- name: Setup .NET | |
uses: actions/setup-dotnet@v3 | |
with: | |
dotnet-version: 8.0.x | |
# Build DMediatR | |
- name: Restore dependencies | |
run: dotnet restore DMediatR.sln | |
- name: Build the solution | |
run: dotnet build DMediatR.sln --configuration=Release | |
# Exclude integration tests as github workflows are prohibited to start DMediatRNode processes: | |
- name: Test the solution | |
run: > | |
dotnet test DMediatR.sln --configuration=Release --no-build --verbosity normal | |
-- NUnit.Where="cat != Integration and cat != Performance" | |
- name: Create .nupkg packages | |
run: dotnet pack DMediatR.sln --configuration Release --no-restore -o ${{ github.workspace }}/packages | |
# Upload NuGet packages to github artefacts | |
- name: Upload .[s]nupkg packages | |
uses: actions/upload-artifact@v4 | |
with: | |
name: DMediatR | |
path: ${{ github.workspace }}/packages/*.*nupkg | |
retention-days: 10 | |
overwrite: true |