Skip to content

Commit

Permalink
update and refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
Noahnc committed Oct 25, 2023
1 parent f4df69d commit 9165e85
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/cli-integration-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,3 +53,26 @@ jobs:
if ( $report.resources_patched -ne 0 ) {
throw "No resources should be patched"
}
if ( $report.errors -gt 0 ) {
throw "Errors have been detected"
}
- name: Run InfraPatch report
shell: bash
run: infrapatch --debug update --dump-json-statistics

- name: Check report result
shell: pwsh
run: |
$report = Get-Content $env:report_json_file -Raw | ConvertFrom-Json
if ( -not $report.total_resources -gt 0 ) {
throw "Failed to get resources"
}
if ( $report.resources_patched -gt 2 ) {
throw "No resources should be patched"
}
if ( $report.errors -gt 0 ) {
throw "Errors have been detected"
}

0 comments on commit 9165e85

Please sign in to comment.