Skip to content

🩹 [Patch]: Add a 'test' for event info #25

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 21 commits into from
Jan 19, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
21 commits
Select commit Hold shift + click to select a range
35039ac
Add validation for input parameters in the configuration module
MariusStorhaug Jan 17, 2025
f735929
🩹 [Patch]: Enhance GitHub event logging with detailed action and send…
MariusStorhaug Jan 17, 2025
0b02c33
🩹 [Patch]: Update workflows to trigger on workflow_dispatch and enhan…
MariusStorhaug Jan 17, 2025
2aa22b6
Enhance output formatting for GitHub event details in main.ps1
MariusStorhaug Jan 17, 2025
556abd7
🩹 [Patch]: Refactor GitHub event details to separate owner from repos…
MariusStorhaug Jan 17, 2025
e87d168
🩹 [Patch]: Enhance GitHub event logging by adding detailed informatio…
MariusStorhaug Jan 17, 2025
90009fe
Enhance GitHub event logging by refining sender, enterprise, organiza…
MariusStorhaug Jan 17, 2025
7dd8a57
Refactor GitHub event logging to streamline data extraction and enhan…
MariusStorhaug Jan 17, 2025
9f21c79
Refactor GitHub event logging to utilize Get-GithubWorkflowData for i…
MariusStorhaug Jan 18, 2025
92d4578
Refactor event logging to log GitHub event data separately for improv…
MariusStorhaug Jan 18, 2025
e06685f
Refactor GitHub event logging to use cached event data for improved p…
MariusStorhaug Jan 18, 2025
99dabc4
Refactor GitHub event logging to use Get-GithubEventData for improved…
MariusStorhaug Jan 18, 2025
41ab655
Add logging for GitHub runner information to enhance visibility
MariusStorhaug Jan 18, 2025
8ba5708
Refactor environment variable logging for improved readability
MariusStorhaug Jan 18, 2025
980eff1
Enhance environment logging by creating a custom object for static pr…
MariusStorhaug Jan 18, 2025
982038e
Remove unused static property logging in main.ps1 and read GitHub sta…
MariusStorhaug Jan 18, 2025
5585e36
Add logging for environment variables to capture RUNNER_* values
MariusStorhaug Jan 18, 2025
c100755
Refactor environment variable logging to remove 'RUNNER_' prefix for …
MariusStorhaug Jan 18, 2025
4a96168
Refactor runner info logging to utilize Get-GithubRunnerData for impr…
MariusStorhaug Jan 18, 2025
2096912
Add logging for GitHub event and runner data; update workflow trigger…
MariusStorhaug Jan 19, 2025
f4d8fff
Update script path in TestWorkflow.yml to point to info.ps1 for impro…
MariusStorhaug Jan 19, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 1 addition & 8 deletions .github/workflows/TestWorkflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,14 +60,7 @@ jobs:
with:
Debug: true
Verbose: true
Script: |
LogGroup 'Get-GitHubZen' {
Get-GitHubZen
}

LogGroup 'Get-GitHubViewer' {
Get-GitHubViewer -Fields name, login, id, databaseID
}
Script: . '.\tests\info.ps1'

ActionTestCommands:
name: Commands + Outputs
Expand Down
9 changes: 9 additions & 0 deletions tests/info.ps1
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#Requires -Modules GitHub

LogGroup ' - Event Info' {
Get-GithubEventData | Format-List
}

LogGroup ' - Runner Info' {
Get-GithubRunnerData | Format-List
}