From 26824353b8057c1781774ef5e2e2b8177a15c36d Mon Sep 17 00:00:00 2001 From: KocsisV Date: Thu, 16 Nov 2023 19:49:15 +0100 Subject: [PATCH] Occurrences -> Findings, update to 2023.3 release --- action.yml | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/action.yml b/action.yml index 9132be3..29dd9d5 100644 --- a/action.yml +++ b/action.yml @@ -47,7 +47,7 @@ runs: { echo "IncQuery Validator for Enterprise Architect will be installed." echo "need_to_install=true" >> $env:GITHUB_OUTPUT - echo "download_url=https://build.incquerylabs.com/nexus/repository/lieberlieber-collaboration-raw/validator-for-ea/release-2023.2.1/IncQuery%20Validator%20for%20Enterprise%20Architect%202023.2.1%20Setup.exe" >> $env:GITHUB_OUTPUT + echo "download_url=https://build.incquerylabs.com/nexus/repository/lieberlieber-collaboration-raw/validator-for-ea/release-2023.3.0/IncQuery%20Validator%20for%20Enterprise%20Architect%202023.3.0%20Setup.exe" >> $env:GITHUB_OUTPUT echo "installer_path=${{ runner.temp }}/IncQuery Validator for Enterprise Architect Setup.exe" >> $env:GITHUB_OUTPUT } @@ -145,7 +145,7 @@ runs: { $msg += "The following type of issues were detected:`r`n" - $msg += "| | Level | Occurrences |`r`n" + $msg += "| | Level | Findings |`r`n" $msg += "| --- | ------------- | ------------- |`r`n" if ( $fatals -ne 0 ) { $msg += "| :no_entry: | Fatal | $fatals |`r`n" } if ( $errors -ne 0 ) { $msg += "| :no_entry_sign: | Error | $errors |`r`n" } @@ -155,16 +155,16 @@ runs: $msg += "`r`n" - $numRulesWithOccurrences = ($summary_csv.Where{$_.occurrences -gt 0}).Count - $numRulesWithoutOccurrences = $numRules - $numRulesWithOccurrences + $numRulesWithFindings = ($summary_csv.Where{$_.Findings -gt 0}).Count + $numRulesWithoutFindings = $numRules - $numRulesWithFindings - if ( $numRules -eq $numRulesWithOccurrences ) + if ( $numRules -eq $numRulesWithFindings ) { - $msg += "All ($numRules) rules have occurrences in the model.`r`n" + $msg += "All ($numRules) rules have findings in the model.`r`n" } else { - $msg += "Out of the $numRules rules, $numRulesWithOccurrences have occurrences.`r`n" + $msg += "Out of the $numRules rules, $numRulesWithFindings have findings.`r`n" } } else @@ -229,27 +229,27 @@ runs: $summary_message += ">`r`n" } - $summary_message += ">Only the rules with occurrences are shown.`r`n`r`n" + $summary_message += ">Only the rules with findings are shown.`r`n`r`n" if ( "${{ inputs.fail_on }}" -eq "none" ) { - $summary_message += "| Severity | Occurrences | Rule name | Description |`r`n" + $summary_message += "| Severity | Findings | Rule name | Description |`r`n" $summary_message += "| -------- | ----------- | --------- | ----------- |`r`n" } else { - $summary_message += "| | Severity | Occurrences | Rule name | Description |`r`n" + $summary_message += "| | Severity | Findings | Rule name | Description |`r`n" $summary_message += "| --- | -------- | ----------- | --------- | ----------- |`r`n" } foreach ($rule in $summary_csv) { $severity = $rule.Severity - $occurrences = $rule.Occurrences + $numFindings = $rule.Findings $description = $rule.Description $ruleName = $rule.'Rule name' - if ( $occurrences -gt 0 ) + if ( $numFindings -gt 0 ) { switch ($severity) { "FATAL" { $severityNumeric = 5 } @@ -278,7 +278,7 @@ runs: $summary_message += " $marker |" } - $summary_message += " $severity | $occurrences | $ruleName | $description |`r`n" + $summary_message += " $severity | $numFindings | $ruleName | $description |`r`n" } } @@ -286,7 +286,7 @@ runs: # write out the summary message echo $msg | Out-File -FilePath $env:GITHUB_STEP_SUMMARY - # only write per rule breakdown if there is any occurrences + # only write per rule breakdown if there is any findings if ( $sumMinDebugs -gt 0 ) { echo $summary_message | Out-File -FilePath $env:GITHUB_STEP_SUMMARY -Append