Fix json serialization #1840
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
# This workflow will build a .NET project | |
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-net | |
name: .NET (Windows) | |
on: | |
push: | |
branches: ["main"] | |
pull_request: | |
branches: ["main"] | |
env: | |
SOLUTIONS: ("ModularPipelines.sln", "ModularPipelines.Examples.sln", "src/ModularPipelines.Azure/ModularPipelines.Azure.sln", "src/ModularPipelines.AmazonWebServices/ModularPipelines.AmazonWebServices.sln", "src/ModularPipelines.Google/ModularPipelines.Google.sln") | |
jobs: | |
pipeline-windows: | |
environment: ${{ github.ref == 'refs/heads/main' && 'Production' || 'Pull Requests' }} | |
runs-on: windows-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
persist-credentials: false | |
- name: Setup WSL | |
uses: Vampire/[email protected] | |
- name: Setup .NET | |
uses: actions/setup-dotnet@v4 | |
with: | |
dotnet-version: 8.0.x | |
- name: Cache NuGet | |
uses: actions/cache@v4 | |
with: | |
path: ~/.nuget/packages | |
key: ${{ runner.os }}-nuget-${{ hashFiles('**/*.csproj') }} | |
restore-keys: | | |
${{ runner.os }}-nuget-${{ hashFiles('**/*.csproj') }} | |
- name: Build ModularPipelines.Analyzers.sln | |
run: dotnet build ModularPipelines.Analyzers.sln -c Release | |
- name: Build | |
run: | | |
foreach ($SOLUTION in ${{ env.SOLUTIONS }}) | |
{ | |
dotnet build $SOLUTION -c Release | |
} | |
- name: Run Pipeline | |
run: dotnet run -c Release --framework net8.0 | |
working-directory: "src/ModularPipelines.Build" | |
env: | |
DOTNET_ENVIRONMENT: 'Development' | |
GitHub__Actor: ${{ github.actor }} | |
GitHub__Repository__Id: ${{ github.repository_id }} | |
GitHub__PullRequest__Number: ${{ github.event.number }} | |
GitHub__PullRequest__Branch: ${{ github.event.pull_request.head.ref }} | |
GitHub__PullRequest__Author: ${{ github.event.pull_request.user.login }} | |
GitHub__StandardToken: ${{ secrets.DOTNET_FORMAT_PUSH_TOKEN }} | |
Publish__ShouldPublish: false | |
EMAIL_PASSWORD: ${{ secrets.EMAIL_PASSWORD }} | |
- name: Upload Code Coverage Results | |
uses: actions/upload-artifact@v4 | |
with: | |
name: code-coverage | |
path: '**/*cobertura*' |