diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index cf7aa73..d11c10d 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -7,6 +7,14 @@ on: branches: ["dev", "master"] workflow_dispatch: # manual trigger +env: + DOTNET_ARGS: > + -c Release + /p:CollectCoverage=true + /p:Threshold=80 + /p:Include="[Flurl]*%2C[Flurl.Http]*%2C[Flurl.Http.Newtonsoft]*" + /p:Exclude="[*]*.GeneratedExtensions" + jobs: build-test-ubuntu: runs-on: ubuntu-latest @@ -23,7 +31,7 @@ jobs: 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" + run: dotnet test --framework net6.0 $DOTNET_ARGS build-test-windows: runs-on: windows-latest @@ -38,4 +46,4 @@ jobs: run: dotnet restore - name: Test - run: dotnet test --framework ${{ matrix.framework }} -c Release /p:CollectCoverage=true /p:Threshold=80 /p:Include="[Flurl]*%2c[Flurl.Http]*%2c[Flurl.Http.Newtonsoft]*" /p:Exclude="[*]*.GeneratedExtensions" + run: dotnet test --framework ${{ matrix.framework }} $DOTNET_ARGS