Skip to content

Commit 3fcdd52

Browse files
committed
Add appinspect stage
1 parent 95604cb commit 3fcdd52

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

.github/workflows/appinspect.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: Validate SDK with Splunk AppInspect
2+
on: [ pull_request ]
3+
4+
env:
5+
PYTHON_VERSION: 3.13
6+
7+
jobs:
8+
appinspect:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd
12+
- uses: ./.github/actions/setup-sdk-environment
13+
with:
14+
python-version: ${{ env.PYTHON_VERSION }}
15+
deps-group: lint
16+
- name: Install splunk-appinspect dependencies
17+
run: sudo apt-get install -y libmagic1
18+
- name: Install splunk-appinspect
19+
run: uv tool install --no-config splunk-appinspect
20+
- name: Copy splunklib to a test app and package it as a mock app
21+
run: |
22+
mkdir -p tests/system/test_apps/generating_app/bin/lib/splunklib
23+
cp -r splunklib/ tests/system/test_apps/generating_app/bin/lib/splunklib
24+
tar -czf mock_app.tgz -C tests/system/test_apps generating_app
25+
- name: Validate mock app with splunk-appinspect
26+
run: splunk-appinspect inspect mock_app.tgz --included-tags cloud

0 commit comments

Comments
 (0)