Skip to content

Commit ed666bf

Browse files
committed
fix
1 parent 3e35ffe commit ed666bf

4 files changed

Lines changed: 27 additions & 4 deletions

File tree

.github/workflows/test-main-output.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
# """
2+
# Purpose: Validate that a main-step `setOutput` value is promoted to job outputs
3+
# and can be read in a downstream job.
4+
# Expectation: `main_marker` equals "main-marker" in job 2.
5+
# Notes: The value is set in `src/main.ts` via `core.setOutput`.
6+
# """
17
name: Output Test - Main Marker
28

39
on:
@@ -13,7 +19,7 @@ jobs:
1319

1420
- name: Start monitor
1521
id: monitor
16-
uses: ./.
22+
uses: hesreallyhim/github-api-usage-monitor@main
1723
with:
1824
token: ${{ secrets.GITHUB_TOKEN }}
1925

.github/workflows/test-output-payload.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
# """
2+
# Purpose: Measure post-hook output payload sizes and capture GITHUB_OUTPUT size.
3+
# Expectation: Size outputs are numeric and surfaced in job 2.
4+
# Notes: Sizes are computed in `src/post.ts` before the size output is written.
5+
# """
16
name: Output Test - Payload Size
27

38
on:
@@ -17,7 +22,7 @@ jobs:
1722

1823
- name: Start monitor
1924
id: monitor
20-
uses: ./.
25+
uses: hesreallyhim/github-api-usage-monitor@main
2126
with:
2227
token: ${{ secrets.GITHUB_TOKEN }}
2328

.github/workflows/test-poll-log-file.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
# """
2+
# Purpose: Validate the alternative approach of persisting poll logs to a file
3+
# and reading that file in a downstream job (via artifact transfer).
4+
# Expectation: The poll log file exists, uploads, and can be downloaded/read.
5+
# Notes: The poll log source is `$RUNNER_TEMP/github-api-usage-monitor/poll-log.jsonl`.
6+
# """
17
name: Output Test - Poll Log File
28

39
on:
@@ -11,7 +17,7 @@ jobs:
1117

1218
- name: Start monitor
1319
id: monitor
14-
uses: ./.
20+
uses: hesreallyhim/github-api-usage-monitor@main
1521
with:
1622
token: ${{ secrets.GITHUB_TOKEN }}
1723

.github/workflows/test-post-output.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
# """
2+
# Purpose: Validate that a post-hook `setOutput` value is promoted to job outputs
3+
# and can be read in a downstream job.
4+
# Expectation: `post_marker` equals "post-marker" in job 2.
5+
# Notes: The value is set in `src/post.ts` via `core.setOutput`.
6+
# """
17
name: Output Test - Post Marker
28

39
on:
@@ -13,7 +19,7 @@ jobs:
1319

1420
- name: Start monitor
1521
id: monitor
16-
uses: ./.
22+
uses: hesreallyhim/github-api-usage-monitor@main
1723
with:
1824
token: ${{ secrets.GITHUB_TOKEN }}
1925

0 commit comments

Comments
 (0)