-
-
Notifications
You must be signed in to change notification settings - Fork 467
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Azure Devops & Github Actions error logging (#1996)
* Added CIFormat output option * Added CI detection * Also check Auto is set has been set manually * Added Write-CIErrorMessage function to format different CIs * Added CIFormat detection in Output.ps1 * Renamed Write-CIErrorMessage to Write-CIErrorToScreen * Remove nullorempty check for header * Updated documentation * Formatting error alignment for github actions * Created Format-CIErrorMessage function to format errors + added tests * Write-CIErrorToScreen now just responsible for writing * Fix formatting * Adding configuration tests to catch issues * Set both TF_BUILD and GITHUB_ACTIONS variables in each test to avoid conflict with auto * Set CIFormat to None for RSpec tests that fail on purpose * Disabling missing Rspec test that fails on purpose * Removed overriding of CIFormat when env variables don't exist * Simplified option documentation * Added CI formatting to Main.ps1 * Simplified Format-CIErrorMessage by putting github actions messages in expandable group * Add title to expandable group * Fixing up tests and updating docs * Trim GHA message whitespace * Use try/finally when executing tests to ensure previous env variables are always set even after failure
- Loading branch information
1 parent
570d3b6
commit 465544d
Showing
11 changed files
with
551 additions
and
15 deletions.
There are no files selected for viewing
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
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
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
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
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
Oops, something went wrong.