-
-
Notifications
You must be signed in to change notification settings - Fork 392
49 lines (40 loc) · 1.02 KB
/
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
name: CI
on:
push:
branches: ["dev"]
pull_request:
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
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 $DOTNET_ARGS
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 }} $DOTNET_ARGS