Update README.md #13
This file contains 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
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 |