Skip to content

Commit

Permalink
Update GitHub Actions workflow to refine policy build checks and adju…
Browse files Browse the repository at this point in the history
…st file paths
  • Loading branch information
arjenhuitema committed Oct 28, 2024
1 parent 48204b1 commit 32f3d84
Showing 1 changed file with 9 additions and 10 deletions.
19 changes: 9 additions & 10 deletions .github/workflows/check-policy-build.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
---
name: Check Policy Build

##########################################
# Start the job on PR for all branches #
##########################################

# yamllint disable-line rule:truthy
on:
pull_request:
Expand All @@ -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
Expand All @@ -33,7 +32,7 @@
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Check build
shell: pwsh
run: |
Expand All @@ -48,4 +47,4 @@
}
}
$result = Invoke-Pester -Configuration $pesterConfiguration
exit $result.FailedCount
exit $result.FailedCount

0 comments on commit 32f3d84

Please sign in to comment.