sanity-check-for-BE #25347
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: sanity-check-for-BE | |
# Controls when the workflow will run | |
on: | |
workflow_dispatch: | |
# Triggers the workflow every 30 minutes | |
schedule: | |
- cron: "*/30 * * * *" | |
# push: | |
# branches: | |
# - main | |
concurrency: | |
group: sanity | |
cancel-in-progress: false | |
jobs: | |
eu-test: | |
permissions: | |
contents: write | |
actions: read | |
name: sanity-check-eu | |
uses: ./.github/workflows/sanity-check-eu.yaml # @sanity_check | |
with: | |
RETRY_JOB: false | |
BINARY_TESTS: '[ | |
"scan_nsa_and_submit_to_backend" | |
]' | |
secrets: inherit | |
us-test: | |
permissions: | |
contents: write | |
actions: read | |
name: sanity-check-us | |
uses: ./.github/workflows/sanity-check-us.yaml | |
with: | |
RETRY_JOB: false | |
BINARY_TESTS: '[ | |
"scan_nsa_and_submit_to_backend" | |
]' | |
secrets: inherit | |
# better-up-time: | |
# needs: [eu-test, us-test] | |
# name: better-up-time | |
# runs-on: ubuntu-latest | |
# if: failure() | |
# #if: ${{ contains(needs.*.result, 'failure') }} | |
# steps: | |
# - run: | | |
# curl --request POST \ | |
# --url https://betteruptime.com/api/v2/incidents \ | |
# --header "Authorization: Bearer ${{ secrets.BETTER_UPTIME_TOKEN }}" \ | |
# --header 'Content-Type: application/json' \ | |
# --data '{"summary": "Production Incident","sms": "false", "email": "true", "call": "true", "requester_email": "borisv@armosec.io", "description": "Sanity check failed ! "}' | |
call-eu-reran: | |
permissions: | |
contents: write | |
actions: read | |
needs: [eu-test] | |
if: ${{ failure() && needs.eu-test.result != 'success' }} # Run only if eu-test fails | |
name: repeated-eu-test | |
uses: ./.github/workflows/sanity-check-eu.yaml # @sanity_check | |
with: | |
RETRY_JOB: true | |
BINARY_TESTS: '[ | |
"scan_nsa_and_submit_to_backend" | |
]' | |
secrets: inherit | |
call-us-reran: | |
permissions: | |
contents: write | |
actions: read | |
needs: [us-test] | |
if: ${{ failure() && needs.us-test.result != 'success' }} # Run only if us-test fails | |
name: repeated-us-test | |
uses: ./.github/workflows/sanity-check-us.yaml # @sanity_check | |
with: | |
RETRY_JOB: true | |
BINARY_TESTS: '[ | |
"scan_nsa_and_submit_to_backend" | |
]' | |
secrets: inherit |