-
-
Notifications
You must be signed in to change notification settings - Fork 33
45 lines (43 loc) · 1.3 KB
/
test-api.yaml
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
name: Test DragaliaAPI
on:
push:
branches:
- main
paths:
- DragaliaAPI/**
- Shared/**
- Directory.Packages.props
pull_request:
branches:
- main
paths:
- DragaliaAPI/**
- Shared/**
- Directory.Packages.props
jobs:
integration-test:
name: Integration test
uses: ./.github/workflows/integration-test.yaml
with:
project: DragaliaAPI/DragaliaAPI.Integration.Test
before-test: |
dotnet restore DragaliaAPI/DragaliaAPI.MissionDesigner/DragaliaAPI.MissionDesigner.csproj
dotnet restore DragaliaAPI/DragaliaAPI.MasterAssetConverter/DragaliaAPI.MasterAssetConverter.csproj
secrets: inherit
unit-test:
name: Unit test
strategy:
matrix:
project:
[
"DragaliaAPI/DragaliaAPI.Test",
"DragaliaAPI/DragaliaAPI.Database.Test",
"DragaliaAPI/DragaliaAPI.Shared.Test",
"DragaliaAPI/DragaliaAPI.Shared.SourceGenerator.Test",
]
uses: ./.github/workflows/test.yaml
with:
project: ${{ matrix.project }}
before-test: |
dotnet restore DragaliaAPI/DragaliaAPI.MissionDesigner/DragaliaAPI.MissionDesigner.csproj
dotnet restore DragaliaAPI/DragaliaAPI.MasterAssetConverter/DragaliaAPI.MasterAssetConverter.csproj