blob: e3030f8bd72e1871ceb5dcc6bb9c8f41b56e0468 (
plain)
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
|
name: Test
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
workflow_dispatch:
jobs:
build:
strategy:
matrix:
host: [windows-latest, ubuntu-latest, macos-latest]
sc: [no-self-contained, self-contained]
exclude:
- os: linux
arch: x86
- os: osx
arch: x86
- os: osx
arch: arm
runs-on: ${{ matrix.host }}
env:
TESTS_PATH: ./Tests
CONFIGURATION: Release
TESTS_CONFIGURATION: Debug
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Checkout submodules
run: git submodule update --init --recursive
- name: Setup .NET
uses: actions/setup-dotnet@v1
with:
dotnet-version: 6.0.x
- name: Tests
env:
SC_OPS: ${{ matrix.sc == 'self-contained' && '--self-contained true -p:PublishTrimmed=True' || '--no-self-contained' }}
run: dotnet test ${{ env.TESTS_PATH }} -c ${{ env.TESTS_CONFIGURATION }} -p:PublishSingleFile=true ${{ env.SC_OPS }}
|