forked from reactive-streams/reactive-streams-dotnet
-
Notifications
You must be signed in to change notification settings - Fork 1
56 lines (46 loc) · 1.23 KB
/
pr_validation.yaml
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
50
51
52
53
54
55
56
name: pr_validation
on:
push:
branches:
- master
- dev
- main
pull_request:
branches:
- master
- dev
- main
jobs:
test:
name: Test-${{matrix.os}}
runs-on: ${{matrix.os}}
strategy:
matrix:
os: [ubuntu-latest, windows-latest]
steps:
- name: "Checkout"
uses: actions/[email protected]
with:
lfs: true
fetch-depth: 0
- name: "Install .NET SDK"
uses: actions/[email protected]
with:
global-json-file: "./src/global.json"
- name: "Update release notes"
shell: pwsh
run: |
./build.ps1
- name: "dotnet build"
run: dotnet build -c Release ./src/Reactive.Streams.sln
# .NET Framework tests can't run reliably on Linux, so we only do .NET 6
- name: "dotnet test"
shell: bash
run: |
if [ "${{ matrix.os }}" = "ubuntu-latest" ]; then
dotnet test -c Release --no-build --framework net6.0 ./src/Reactive.Streams.sln
else
dotnet test -c Release --no-build ./src/Reactive.Streams.sln
fi
- name: "dotnet pack"
run: dotnet pack -c Release --no-build ./src/Reactive.Streams.sln