Skip to content

Run Nightly Test

Run Nightly Test #949

Workflow file for this run

name: Run Nightly Test
on:
schedule:
- cron: '30 3 * * *'
jobs:
nightly-test:
name: Nightly Test
if: github.repository == 'openshift-helm-charts/development'
uses: ./.github/workflows/behave.yml
with:
tags: full
behave-logging-level: INFO
pr-body: |
Test triggered by nightly run.
${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}
checkout-fetch-depth: 0
secrets:
bot-name: ${{ secrets.BOT_NAME }}
bot-token: ${{ secrets.BOT_TOKEN }}
communicate-outcome:
if: always()
name: Communicate Outcome
needs: [nightly-test]
runs-on: ubuntu-22.04
steps:
- name: Send message to helm_dev slack channel
id: notify_to_dev
if: needs.nightly-test.result != 'success'
uses: archive/[email protected]
with:
slack-bot-user-oauth-access-token: ${{ secrets.SLACK_BOT_USER_OAUTH_ACCESS_TOKEN }}
slack-channel: C02979BDUPL
slack-text: Failure! Nightly test for certification flow. See '${{github.server_url}}/${{github.repository}}/actions/runs/${{github.run_id}}'
- name: Result from "Send Message to helm_dev slack channel"
if: needs.nightly-test.result != 'success'
run: echo "The result was ${{ steps.notify_to_dev.outputs.slack-result }}"
- name: Send message to helm_notify slack channel
id: notify
if: needs.nightly-test.result == 'success'
uses: archive/[email protected]
with:
slack-bot-user-oauth-access-token: ${{ secrets.SLACK_BOT_USER_OAUTH_ACCESS_TOKEN }}
slack-channel: C04K1ARMH8A
slack-text: Success! Nightly test for certification flow. See '${{github.server_url}}/${{github.repository}}/actions/runs/${{github.run_id}}'
- name: Result from "Send Message to helm_notify slack channel"
if: needs.nightly-test.result == 'success'
run: echo "The result was ${{ steps.notify.outputs.slack-result }}"