Repository navigation
Nightly CI tests triggered from @nebojsa94 of #185
This file contains hidden or 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: Nightly CI | |
| run-name: Nightly CI tests triggered from @${{ github.actor }} of ${{ github.head_ref }} | |
| on: | |
| workflow_dispatch: | |
| schedule: | |
| # Run at 00:00 AM UTC | |
| - cron: '0 0 * * *' | |
| permissions: | |
| contents: read | |
| jobs: | |
| # Only run on schedule | |
| tests-scheduled: | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| test-mode: [legacychallenge, long, challenge-A, challenge-B, l3challenge, execution-spec-tests, pebble-a, pebble-b] | |
| uses: ./.github/workflows/_go-tests.yml | |
| secrets: inherit | |
| with: | |
| run-name: ${{ matrix.test-mode }} | |
| run-legacy-challenge: ${{ matrix.test-mode == 'legacychallenge' }} | |
| run-long: ${{ matrix.test-mode == 'long' }} | |
| run-challenge-a: ${{ matrix.test-mode == 'challenge-A' }} | |
| run-challenge-b: ${{ matrix.test-mode == 'challenge-B' }} | |
| run-l3challenge: ${{ matrix.test-mode == 'l3challenge' }} | |
| run-execution-spec-tests: ${{ matrix.test-mode == 'execution-spec-tests' }} | |
| run-pebble-a: ${{ matrix.test-mode == 'pebble-a' }} | |
| run-pebble-b: ${{ matrix.test-mode == 'pebble-b' }} | |
| # MEL test modes are gated out of default CI; run them nightly so master | |
| # coverage is preserved without blocking every PR. | |
| mel-tests-scheduled: | |
| uses: ./.github/workflows/_mel-go-test-suite.yml | |
| secrets: inherit | |
| notify-on-failure: | |
| name: Notify Slack on failure | |
| needs: [tests-scheduled, mel-tests-scheduled] | |
| runs-on: ubuntu-4 | |
| if: ${{ failure() }} | |
| env: | |
| RUN_URL: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }} | |
| steps: | |
| - name: Send Slack notification | |
| uses: slackapi/slack-github-action@91efab103c0de0a537f72a35f6b8cda0ee76bf0a # v2.1.1 | |
| with: | |
| errors: true | |
| method: chat.postMessage | |
| token: ${{ secrets.SLACK_BOT_TOKEN }} | |
| payload: | | |
| { | |
| "channel": "${{ secrets.SLACK_CHANNEL_ID }}", | |
| "text": "⚠️ CI job failed! ${{ env.RUN_URL }}", | |
| } |