-
Notifications
You must be signed in to change notification settings - Fork 6
53 lines (45 loc) · 1.37 KB
/
appinspect.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
name: AppInspect
on:
push:
paths-ignore:
- '.github/workflows/manual-release.yml'
- '.github/workflows/tests.yml'
jobs:
appinspect-cli:
name: AppInspect CLI Validation
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Setup Python
uses: actions/setup-python@v4
with:
python-version: 3.9
- name: Install dependencies
run: |
python -m pip install splunk-appinspect
- name: Run AppInspect
run: |
ls .
app_id=$(cat splunk-*/app.manifest | jq -r '.info.id.name')
cp ../README.md ${app_id}
splunk-appinspect inspect ${app_id} --output-file appinspect.json
exit `cat appinspect.json | jq '.summary.failure'`
working-directory: ./packages
appinspect-api:
name: AppInspect API Validation
needs:
- appinspect-cli
runs-on: ubuntu-latest
# Job not executed if branch is not master
if: github.ref == 'refs/heads/master'
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Run AppInspect
uses: splunk/appinspect-api-action@v3.0
with:
username: ${{ secrets.SPLUNKBASE_USERNAME }}
password: ${{ secrets.SPLUNKBASE_PASSWORD }}
app_path: packages/
includedTags: cloud