-
Notifications
You must be signed in to change notification settings - Fork 22
44 lines (40 loc) · 1.02 KB
/
pr-validation.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
name: pr-validation
on:
pull_request
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [windows-latest, ubuntu-latest]
steps:
- uses: actions/checkout@v2
- uses: actions/setup-dotnet@v2
with:
global-json-file: global.json
- name: Install dependencies
run: dotnet restore
- name: Build
run: dotnet build dirs.proj
test:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [windows-latest, ubuntu-latest]
needs: build
steps:
- uses: actions/checkout@v2
- uses: actions/setup-dotnet@v2
with:
global-json-file: global.json
- name: Disable strong name validation
if: matrix.os == 'windows-latest'
shell: pwsh
run: |
.\disableStrongName.ps1
- name: Run tests Windows
if: matrix.os == 'windows-latest'
run: dotnet test
- name: Run tests Linux
if: matrix.os == 'ubuntu-latest'
run: dotnet test /p:TargetFramework=net8.0