Skip to content
Open
Changes from all commits
Commits
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
13 changes: 12 additions & 1 deletion .github/actions/run-appinspect/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,15 @@ runs:
tar -czf mock_app.tgz --exclude="__pycache__" bin default metadata
- name: Validate the mock app with AppInspect
shell: bash
run: uvx splunk-appinspect inspect ./tests/system/test_apps/generating_app/mock_app.tgz --included-tags cloud
run: |
# AppInspect doesn't follow UNIX conventions, gotta handle their exit codes explicitly
Comment thread
mateusz834 marked this conversation as resolved.
# https://dev.splunk.com/enterprise/reference/appinspect/appinspectcliref#inspect
uvx splunk-appinspect inspect \
./tests/system/test_apps/generating_app/mock_app.tgz \
--included-tags cloud --ci || exit_code=$?
case "${exit_code:-0}" in
0) ;; # all checks passed
103) ;; # warnings (--ci)
104) ;; # future-tag warnings (--ci)
*) exit "${exit_code}" ;; # 101=failures, 1=packaging, 2=exception, 3=error, etc.
esac
Loading