-
-
Notifications
You must be signed in to change notification settings - Fork 0
41 lines (38 loc) · 1.27 KB
/
main.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
name: Build & Test
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
build:
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
dotnet-version: [ '6.0', '7.0', '8.0' ]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/[email protected]
- name: Setup .NET Core
uses: actions/setup-dotnet@v4
with:
dotnet-version: ${{ matrix.dotnet-version }}
- name: Install dependencies
run: dotnet restore
- name: Build
run: dotnet build --configuration Release --no-restore
- name: Test
run: dotnet test --framework net${{ matrix.dotnet-version }} --no-restore --verbosity normal --logger trx --results-directory "TestResults-${{ matrix.os }} ${{ matrix.dotnet-version }}"
- name: Upload a Build Artifact
if: ${{ failure() || success() }}
uses: actions/[email protected]
with:
name: ${{ matrix.os }} ${{ matrix.dotnet-version }}
path: |
RDMSharpTests/bin/*/net${{ matrix.dotnet-version }}/log.txt
TestResults-${{ matrix.os }} ${{ matrix.dotnet-version }}
RDMSharp/bin/Release/net${{ matrix.dotnet-version }}/RDMSharp.dll
retention-days: 2
continue-on-error: true