-
Notifications
You must be signed in to change notification settings - Fork 5
52 lines (43 loc) · 2.03 KB
/
build+unit.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
45
46
47
48
49
50
51
52
name: Build+Unit
on:
push:
branches:
- "main"
pull_request:
branches: [main]
types: [opened, synchronize, reopened]
workflow_dispatch:
jobs:
build:
runs-on: windows-latest
steps:
- run: git config --global core.autocrlf true
- uses: actions/checkout@v2
- name: Setup .NET
uses: actions/setup-dotnet@v1
with:
dotnet-version: 8.0.x
- name: Restore dependencies
working-directory: ./src
run: |
dotnet restore
- name: Build
working-directory: ./src
run: |
dotnet build ./IAD.Framework.sln --no-restore
- name: Check Generation
run: |
dotnet test src\_SampleSystem\_Tests\SampleSystem.CheckGenTests\SampleSystem.CheckGenTests.csproj --no-build --verbosity normal
- name: Unit tests
run: |
dotnet test src/Framework.Core.Tests.Unit --no-build --verbosity normal
dotnet test src/Framework.OData.Tests.Unit --no-build --verbosity normal
dotnet test src/Framework.SecuritySystem.DiTests --no-build --verbosity normal
dotnet test src/Framework.Validation.Tests.Unit --no-build --verbosity normal
dotnet test src/_SampleSystem/_Tests/SampleSystem.UnitTests --no-build --verbosity normal
dotnet test src/_Configuration/Framework.Configuration.BLL.Core.Tests.Unit --no-build --verbosity normal
dotnet test src/_Configuration/Framework.Configuration.SubscriptionModeling.Tests.Unit --no-build --verbosity normal
dotnet test src/_DomainDriven/Framework.DomainDriven.ServiceModel.Tests.Unit --no-build --verbosity normal
dotnet test src/_DomainDriven/Framework.DomainDriven.DBGenerator.Tests.Unit --no-build --verbosity normal
dotnet test src/_DomainDriven/Framework.DomainDriven.BLL.Security.Tests.Unit --no-build --verbosity normal
dotnet test src/_DomainDriven/Framework.FinancialYear.Tests.Unit --no-build --verbosity normal