CI - fix windows shell escaping #130
This file contains hidden or 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: CI | |
| on: | |
| push: | |
| branches: ["dev"] | |
| pull_request: | |
| branches: ["dev", "master"] | |
| workflow_dispatch: # manual trigger | |
| jobs: | |
| build-test-ubuntu: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Setup .NET | |
| uses: actions/setup-dotnet@v4 | |
| with: | |
| dotnet-version: 6.0.x | |
| - name: Restore dependencies | |
| run: dotnet restore | |
| - name: Test | |
| run: dotnet test --framework net6.0 -c Release /p:CollectCoverage=true /p:Threshold=80 /p:Include=\"[Flurl]*,[Flurl.Http]*,[Flurl.Http.Newtonsoft]*\" /p:Exclude="[*]*.GeneratedExtensions" | |
| build-test-windows: | |
| runs-on: windows-latest | |
| strategy: | |
| matrix: | |
| framework: [net481, net461] | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Restore dependencies | |
| run: dotnet restore | |
| - name: Test | |
| run: dotnet test --framework ${{ matrix.framework }} -c Release /p:CollectCoverage=true /p:Threshold=80 /p:Include="[Flurl]*,[Flurl.Http]*,[Flurl.Http.Newtonsoft]*" /p:Exclude="[*]*.GeneratedExtensions" |