Skip to content

Commit

Permalink
test gate failure
Browse files Browse the repository at this point in the history
Signed-off-by: Alex Goodman <[email protected]>
  • Loading branch information
wagoodman committed Oct 26, 2023
1 parent aa39c18 commit e31cbe3
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 12 deletions.
4 changes: 3 additions & 1 deletion .github/actions/quality-gate/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,9 @@ runs:
- name: Validate provider results
shell: bash
working-directory: tests/quality
run: poetry run make validate
run: |
poetry run make validate
false # force failure
- name: Archive the provider state (${{ inputs.provider }})
if: ${{ failure() }}
Expand Down
23 changes: 12 additions & 11 deletions .github/workflows/nightly-quality-gate.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,10 @@ jobs:
id: determine-providers
run: |
# select all providers as test subjects (this populates the matrix downstream)
content=`cd tests/quality && poetry run make all-providers`
echo $content
echo "providers=$content" >> $GITHUB_OUTPUT
# content=`cd tests/quality && poetry run make all-providers`
# echo $content
# echo "providers=$content" >> $GITHUB_OUTPUT
echo 'providers=["oracle"]' >> $GITHUB_OUTPUT
validate-provider:
runs-on: ubuntu-22.04
Expand Down Expand Up @@ -79,11 +80,11 @@ jobs:
fi
echo "🟢 Quality gate passed!"
- uses: 8398a7/action-slack@fbd6aa58ba854a740e11a35d0df80cb5d12101d8 #v3.15.1
if: ${{ failure() }}
with:
status: ${{ job.status }}
fields: repo,workflow,action,eventName
text: "Vunnel nightly quality gate has failed: https://github.com/anchore/vunnel/actions/workflows/nightly-quality-gate.yaml"
env:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_TOOLBOX_WEBHOOK_URL }}
# - uses: 8398a7/action-slack@fbd6aa58ba854a740e11a35d0df80cb5d12101d8 #v3.15.1
# if: ${{ failure() }}
# with:
# status: ${{ job.status }}
# fields: repo,workflow,action,eventName
# text: "Vunnel nightly quality gate has failed: https://github.com/anchore/vunnel/actions/workflows/nightly-quality-gate.yaml"
# env:
# SLACK_WEBHOOK_URL: ${{ secrets.SLACK_TOOLBOX_WEBHOOK_URL }}

0 comments on commit e31cbe3

Please sign in to comment.