From 32f3d845e45a3f7158649ea5cc5a922c3c5ebd53 Mon Sep 17 00:00:00 2001 From: Arjen Huitema Date: Mon, 28 Oct 2024 17:42:30 +0100 Subject: [PATCH] Update GitHub Actions workflow to refine policy build checks and adjust file paths --- .github/workflows/check-policy-build.yml | 19 +++++++++---------- 1 file changed, 9 insertions(+), 10 deletions(-) diff --git a/.github/workflows/check-policy-build.yml b/.github/workflows/check-policy-build.yml index 322607cf9..efe65cb4b 100644 --- a/.github/workflows/check-policy-build.yml +++ b/.github/workflows/check-policy-build.yml @@ -1,10 +1,10 @@ --- name: Check Policy Build - + ########################################## # Start the job on PR for all branches # ########################################## - + # yamllint disable-line rule:truthy on: pull_request: @@ -14,15 +14,14 @@ - synchronize - ready_for_review paths: - - "eslzArm/**.json" - - "src/Alz.Tools/**" - - "src/**.json" - - "src/**.bicep" - + - "patterns/alz/policyDefinitions/**.json" + - "patterns/alz/templates/**.bicep" + - "services/**.json" + ############### # Set the Job # ############### - + jobs: check-policy: name: Check Policy Build @@ -33,7 +32,7 @@ uses: actions/checkout@v4 with: fetch-depth: 0 - + - name: Check build shell: pwsh run: | @@ -48,4 +47,4 @@ } } $result = Invoke-Pester -Configuration $pesterConfiguration - exit $result.FailedCount \ No newline at end of file + exit $result.FailedCount