-
-
Notifications
You must be signed in to change notification settings - Fork 0
89 lines (80 loc) · 2.11 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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
name: AppInspect
on:
push:
branches:
- "main"
- "develop"
tags:
- "v[0-9]+.[0-9]+.[0-9]+"
pull_request:
branches:
- "main"
- "develop"
jobs:
# Package App
package:
name: Package
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
with:
# semantic-release won't trigger a tagged build if this is not set false
persist-credentials: false
# Our add-on contains Python code, so we need to install Python in the container
- name: Setup Python
uses: actions/setup-python@v2
with:
python-version: 3.7
# - name: Package Splunk App with SLIM
# id: slim
# uses: splunk/[email protected]
# with:
# source: /github/workspace/package
- name: Package Splunk App with CLI
run: |
pwd
ls -la
cd ${GITHUB_WORKSPACE}
mv package kaspersky_app
mkdir dist
tar -zcvf dist/kaspersky_app.tar.gz kaspersky_app
cd dist
ls -la
pwd
- name: Upload package as an artifact
uses: actions/upload-artifact@v2
with:
name: package-splunkbase
path: /home/runner/work/kaspersky_app/kaspersky_app/dist
if: always()
# Run AppInspect CLI
appinspect-cli:
name: AppInspect CLI
needs: package
runs-on: ubuntu-latest
strategy:
matrix:
tags:
- "cloud"
- "appapproval"
- "deprecated_feature"
- "developer_guidance"
- "future"
- "self-service"
- "splunk_appinspect"
steps:
- name: Get AppInspect CLI
uses: actions/download-artifact@v2
with:
name: package-splunkbase
path: dist
- name: Run AppInspect CLI
uses: splunk/[email protected]
with:
app_path: dist
included_tags: ${{ matrix.tags }}
# splunkbase-release:
# name: Release to Splunkbase
# needs: appinspect-cli
# runs-on: ubuntu-latest