-
Notifications
You must be signed in to change notification settings - Fork 0
33 lines (31 loc) · 1.08 KB
/
dotnetcore.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
name: CPlugin.Net
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
build:
strategy:
matrix:
os: [ubuntu-latest]
dotnet-version: ['8.x']
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- name: Setup .NET Core
uses: actions/setup-dotnet@v3
with:
dotnet-version: ${{ matrix.dotnet-version }}
- name: Test
run: |
dotnet test ./tests/CPlugin.Net/CPlugin.Net.Tests.csproj -c Release
dotnet publish ./tests/CPlugin.Net/CPlugin.Net.Tests.csproj -c Release --no-build -o out
dotnet vstest ./out/CPlugin.Net.Tests.dll
dotnet build ./samples/Plugins/AppointmentPlugin/Example.AppointmentPlugin.csproj -c Release
dotnet build ./samples/Plugins/PersonPlugin/Example.PersonPlugin.csproj -c Release
dotnet build ./samples/Plugins/JsonPlugin/Example.JsonPlugin.csproj -c Release
dotnet build ./samples/Plugins/OldJsonPlugin/Example.OldJsonPlugin.csproj -c Release
dotnet test ./samples/Test/Example.Test.csproj -c Release