✅Unit Testing Status Check (preview branch) #855
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: ✅Unit Testing Status Check | |
run-name: ✅Unit Testing Status Check (${{ github.base_ref }} branch) | |
defaults: | |
run: | |
shell: pwsh | |
on: | |
workflow_dispatch: | |
pull_request_target: | |
branches: [main, preview] | |
jobs: | |
# These are not tests but it is testing related. This is just here to make sure that the | |
# 'test' related project at least builds. | |
build_velaptor_testing: | |
name: Build ${{ vars.PROJECT_NAME }} Testing App | |
uses: KinsonDigital/Infrastructure/.github/workflows/[email protected] | |
with: | |
project-name: "${{ vars.PROJECT_NAME }}Testing" | |
build-config: Debug | |
net-sdk-version: "${{ vars.NET_SDK_VERSION }}" | |
checkout-repository: ${{ github.event.pull_request.head.repo.full_name }} | |
checkout-ref: ${{ github.event.pull_request.head.ref }} | |
secrets: | |
cicd-pat: ${{ secrets.CICD_TOKEN }} | |
# These are not tests but it is testing related. This is just here to make sure that the | |
# 'test' related project at least builds. | |
build_avalonia_testing: | |
name: Build Avalonia Testing App | |
uses: KinsonDigital/Infrastructure/.github/workflows/[email protected] | |
with: | |
project-name: "AvaloniaTesting" | |
build-config: Debug | |
net-sdk-version: "${{ vars.NET_SDK_VERSION }}" | |
checkout-repository: ${{ github.event.pull_request.head.repo.full_name }} | |
checkout-ref: ${{ github.event.pull_request.head.ref }} | |
secrets: | |
cicd-pat: ${{ secrets.CICD_TOKEN }} | |
run_tests: | |
name: Run ${{ vars.PROJECT_NAME }} Tests | |
uses: KinsonDigital/Infrastructure/.github/workflows/[email protected] | |
with: | |
project-name: "${{ vars.PROJECT_NAME }}Tests" | |
build-config: Debug | |
net-sdk-version: "${{ vars.NET_SDK_VERSION }}" | |
checkout-repository: ${{ github.event.pull_request.head.repo.full_name }} | |
checkout-ref: ${{ github.event.pull_request.head.ref }} | |
secrets: | |
cicd-pat: ${{ secrets.CICD_TOKEN }} | |
test_status_check: | |
name: ${{ vars.PROJECT_NAME }} Test Status Check | |
needs: [build_velaptor_testing, build_avalonia_testing, run_tests] | |
runs-on: ubuntu-latest | |
steps: | |
- name: Print Status Check Pass Message | |
run: Write-Host "::notice::✅Test Status Check Passed✅"; |