-
Notifications
You must be signed in to change notification settings - Fork 78
44 lines (35 loc) · 1.51 KB
/
dotnet.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
# This workflow will build a .NET project
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-net
name: OpenMcdf pipeline .NET
on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
env:
buildConfiguration: 'Release'
libFramework: 'netstandard2.0'
appFramework: 'net6.0'
# pay attention to slashes
testsProject: 'sources/Test/OpenMcdf.Test/OpenMcdf.Test.csproj'
extensionTestsProject: 'sources/Test/OpenMcdf.Extensions.Test/OpenMcdf.Extensions.Test.csproj'
buildProject: 'sources/OpenMcdf/OpenMcdf.csproj'
# without filter it will timeout in azure AFTER 60+ min
testFilter: 'Name!=Test_FIX_BUG_GH_14&Name!=Test_FIX_BUG_GH_15'
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: 8.0.x
- name: Restore dependencies
run: dotnet restore
- name: Build
run: dotnet build --no-restore --configuration ${{env.buildConfiguration}} -f ${{env.libFramework}} ${{env.buildProject}}
- name: Test
run: dotnet test -f ${{env.appFramework}} ${{env.testsProject}} --filter="${{env.testFilter}}" --logger "GitHubActions;summary.includePassedTests=true;summary.includeSkippedTests=true"
- name: Test Extensions
run: dotnet test -f ${{env.appFramework}} ${{env.extensionTestsProject}} --logger "GitHubActions;summary.includePassedTests=true;summary.includeSkippedTests=true"