✅Build Status Check (preview branch) #219
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: ✅Build Status Check | |
run-name: ✅Build Status Check (${{ github.base_ref }} branch) | |
defaults: | |
run: | |
shell: pwsh | |
on: | |
pull_request_target: | |
branches: [main, preview] | |
jobs: | |
build_main_project: | |
name: Build ${{ vars.PROJECT_NAME }} | |
uses: KinsonDigital/Infrastructure/.github/workflows/build-csharp-project.yml@v13.6.3 | |
with: | |
project-name: "${{ vars.PROJECT_NAME }}" | |
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 }} | |
build_perf_project: | |
name: Build ${{ vars.PROJECT_NAME }}PerfTests | |
uses: KinsonDigital/Infrastructure/.github/workflows/build-csharp-project.yml@v13.6.3 | |
with: | |
project-name: "${{ vars.PROJECT_NAME }}PerfTests" | |
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 }} | |
build_samples_project: | |
name: Build Samples | |
uses: KinsonDigital/Infrastructure/.github/workflows/build-csharp-project.yml@v13.6.3 | |
with: | |
project-name: "Samples" | |
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 }} | |
build_status_check: | |
name: ${{ vars.PROJECT_NAME }} Build Status Check | |
needs: [build_main_project, build_perf_project, build_samples_project] | |
runs-on: ubuntu-latest | |
steps: | |
- name: Print Status Check Pass Message | |
shell: pwsh | |
run: Write-Host "::notice::✅Test Status Check Passed✅"; |