Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
awownysz-splunk committed Dec 20, 2023
1 parent ea3e0c2 commit 01cc1ed
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 13 deletions.
39 changes: 26 additions & 13 deletions .github/workflows/reusable-build-test-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -556,7 +556,12 @@ jobs:
appinspect-cli:
name: AppInspect CLI ${{ matrix.tags }}
runs-on: ubuntu-latest
needs: build
# inputs to `dynamic-uses` step
env:
matrix_tags: ${{ matrix.tags }}
needs:
- build
- get-called-ref
if: ${{ !cancelled() && needs.build.result == 'success' }}
strategy:
fail-fast: false
Expand All @@ -571,15 +576,22 @@ jobs:
- "splunk_appinspect"
- "manual"
steps:
- name: Run appinspect CLI
uses: ./.github/actions/appinspect-cli
- uses: jenseng/dynamic-uses@v1
with:
matrix_tags: ${{ matrix.tags }}
uses: splunk/addonfactory-workflow-addon-release/.github/actions/appinspect-cli@${{ needs.get-called-ref.outputs.ref }}
# inputs need to provided as a valid JSON string
with: ${{ toJSON(env) }}

appinspect-api:
name: AppInspect API ${{ matrix.tags }}
runs-on: ubuntu-latest
needs: build
env:
matrix_tags: ${{ matrix.tags }}
SPL_COM_USER: ${{ secrets.SPL_COM_USER }}
SPL_COM_PASSWORD: ${{ secrets.SPL_COM_PASSWORD }}
needs:
- build
- get-called-ref
if: |
!cancelled() &&
needs.build.result == 'success' &&
Expand All @@ -592,28 +604,29 @@ jobs:
- "self-service"
- ""
steps:
- name: Run appinspect API
uses: ./.github/actions/appinspect-api
- uses: jenseng/dynamic-uses@v1
with:
matrix_tags: ${{ matrix.tags }}
SPL_COM_USER: ${{ secrets.SPL_COM_USER }}
SPL_COM_PASSWORD: ${{ secrets.SPL_COM_PASSWORD }}
uses: splunk/addonfactory-workflow-addon-release/.github/actions/appinspect-api@${{ needs.get-called-ref.outputs.ref }}
# inputs need to provided as a valid JSON string
with: ${{ toJSON(env) }}

artifact-registry:
name: Artifact registry
runs-on: ubuntu-latest
needs:
- virustotal
- meta
- get-called-ref
if: ${{ !cancelled() && needs.virustotal.result == 'success' && needs.meta.result == 'success' }}
permissions:
contents: read
packages: write
steps:
- name: Run artifact registry
uses: ./.github/actions/artifact-registry
- uses: jenseng/dynamic-uses@v1
with:
sc4s: ${{ needs.meta.outputs.sc4s }}
uses: splunk/addonfactory-workflow-addon-release/.github/actions/artifact-registry@${{ needs.get-called-ref.outputs.ref }}
# inputs need to provided as a valid JSON string
with: ${{ toJSON(env) }}

setup:
needs:
Expand Down
8 changes: 8 additions & 0 deletions .github/workflows/reusable-lightweight.yml
Original file line number Diff line number Diff line change
Expand Up @@ -296,6 +296,14 @@ jobs:
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
ucc_modinput_functional: ${{ needs.test-inventory.outputs.ucc_modinput_functional}}
modinput_functional: ${{ needs.test-inventory.outputs.modinput_functional}}
- name: Checkout repository
uses: jenseng/dynamic-uses@v1
env:
repository: splunk/addonfactory-workflow-addon-release
ref: ${{ needs.get-called-ref.outputs.ref }}
with:
uses: actions/checkout@v3
with: ${{ toJSON(env) }}

virustotal:
runs-on: ubuntu-latest
Expand Down

0 comments on commit 01cc1ed

Please sign in to comment.