edited docker-compose to support different platform #45
Workflow file for this run
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: | |
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 |