generated from KinsonDigital/CSharpLibTemplateRepo
-
-
Notifications
You must be signed in to change notification settings - Fork 0
49 lines (39 loc) · 1.46 KB
/
test-status-check.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
name: ✅Testing Status Check
run-name: ✅Unit Testing Status Check (${{ github.base_ref }} branch)
defaults:
run:
shell: pwsh
on:
pull_request_target:
branches: [main, preview]
jobs:
main_tests:
name: Run ${{ vars.PROJECT_NAME }} Tests
uses: KinsonDigital/Infrastructure/.github/workflows/run-csharp-tests.yml@v13.6.3
with:
project-name: "${{ vars.PROJECT_NAME }}Tests"
build-config: Debug
net-sdk-version: "${{ vars.NET_SDK_VERSION }}"
checkout-ref: ${{ github.event.pull_request.head.ref }}
checkout-repository: ${{ github.event.pull_request.head.repo.full_name }}
secrets:
cicd-pat: ${{ secrets.CICD_TOKEN }}
integration_tests:
name: Run ${{ vars.PROJECT_NAME }} Integration Tests
uses: KinsonDigital/Infrastructure/.github/workflows/run-csharp-tests.yml@v13.6.3
with:
project-name: "${{ vars.PROJECT_NAME }}IntegrationTests"
build-config: Debug
net-sdk-version: "${{ vars.NET_SDK_VERSION }}"
checkout-ref: ${{ github.event.pull_request.head.ref }}
checkout-repository: ${{ github.event.pull_request.head.repo.full_name }}
secrets:
cicd-pat: ${{ secrets.CICD_TOKEN }}
test_status_check:
name: ${{ vars.PROJECT_NAME }} Test Status Check
needs: [main_tests, integration_tests]
runs-on: ubuntu-latest
steps:
- name: Print Status Check Pass Message
shell: pwsh
run: Write-Host "::notice::✅Test Status Check Passed✅";