-
-
Notifications
You must be signed in to change notification settings - Fork 392
33 lines (28 loc) · 822 Bytes
/
ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
name: CI
on:
push:
branches: ["dev"]
pull_request:
branches: ["dev", "master"]
workflow_dispatch: # manual trigger
jobs:
build_test:
strategy:
matrix:
os: [ubuntu-latest, windows-latest]
framework: [net6.0, net481, net461]
runs-on: ${{ matrix.os }}
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: |
6.0.x
4.8.1
4.6.1
- 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"