-
Notifications
You must be signed in to change notification settings - Fork 2
ci: add Makefile and workflow for agent script tests #37
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
ifireball
merged 3 commits into
fullsend-ai:main
from
ifireball:chore/add-script-test-ci
Jul 8, 2026
+67
−0
Merged
Changes from all commits
Commits
Show all changes
3 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,29 @@ | ||
| name: Script tests | ||
|
|
||
| on: | ||
| push: | ||
| branches: [main] | ||
| pull_request: | ||
| branches: [main] | ||
| merge_group: | ||
|
|
||
| permissions: | ||
| contents: read | ||
|
|
||
| jobs: | ||
| script-test: | ||
| runs-on: ubuntu-24.04 | ||
| steps: | ||
| - uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0 | ||
|
|
||
| - uses: actions/setup-python@ece7cb06caefa5fff74198d8649806c4678c61a1 # v6.3.0 | ||
| with: | ||
| python-version: "3.12" | ||
|
|
||
| - name: Install uv | ||
| uses: astral-sh/setup-uv@37802adc94f370d6bfd71619e3f0bf239e1f3b78 # v7.6.0 | ||
|
|
||
| - name: Install test dependencies | ||
| run: uv pip install --system jsonschema==4.23.0 | ||
|
|
||
| - run: make script-test | ||
|
ifireball marked this conversation as resolved.
|
||
This file contains hidden or 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,27 @@ | ||
| .DEFAULT_GOAL := help | ||
| .PHONY: help script-test test | ||
|
|
||
| help: | ||
| @echo "Available targets:" | ||
| @echo " help - Show this help message" | ||
| @echo " script-test - Run agent shell script unit tests" | ||
| @echo " test - Alias for script-test" | ||
|
|
||
| define run-timed | ||
| @start=$$(date +%s); \ | ||
| rc=0; $(1) || rc=$$?; \ | ||
| elapsed=$$(($$(date +%s) - $$start)); \ | ||
| printf '::debug::script-test timing: %s completed in %ds\n' '$(1)' "$$elapsed"; \ | ||
|
ifireball marked this conversation as resolved.
|
||
| exit $$rc | ||
|
ifireball marked this conversation as resolved.
|
||
| endef | ||
|
|
||
| script-test: | ||
| $(call run-timed,bash scripts/post-triage-test.sh) | ||
| $(call run-timed,bash scripts/post-prioritize-test.sh) | ||
| $(call run-timed,bash scripts/post-code-test.sh) | ||
| $(call run-timed,bash scripts/post-review-test.sh) | ||
| $(call run-timed,bash scripts/post-fix-test.sh) | ||
| $(call run-timed,bash scripts/post-retro-test.sh) | ||
| $(call run-timed,bash scripts/validate-output-schema-test.sh) | ||
|
|
||
| test: script-test | ||
This file contains hidden or 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.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.