Integration Test (Profile + Schedule) #5
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
| # This file is automatically generated from the templates in stackabletech/operator-templating | |
| # DO NOT MANUALLY EDIT THIS FILE | |
| --- | |
| name: Integration Test (Profile + Schedule) | |
| on: | |
| schedule: | |
| # At 04:00 on Sunday. See: https://crontab.guru/#0_4_*_*_0 | |
| - cron: "0 4 * * 0" | |
| workflow_dispatch: | |
| inputs: | |
| test-profile: | |
| description: Name of the test runner, eg. `smoke-latest` or `schedule` (see test/interu.yaml) | |
| required: true | |
| permissions: {} | |
| jobs: | |
| test: | |
| name: Run Integration Test | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: read | |
| steps: | |
| - uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0 | |
| with: | |
| persist-credentials: false | |
| submodules: recursive | |
| - name: Determine Profile | |
| id: profile | |
| env: | |
| GITHUB_EVENT_NAME: ${{ github.event_name }} | |
| PROFILE_INPUT: ${{ inputs.test-profile }} | |
| shell: bash | |
| run: | | |
| if [ "$GITHUB_EVENT_NAME" == "schedule" ]; then | |
| echo "PROFILE=schedule" | tee -a "$GITHUB_OUTPUT" | |
| else | |
| echo "PROFILE=${PROFILE_INPUT}" | tee -a "$GITHUB_OUTPUT" | |
| fi | |
| - name: Run Integration Test | |
| id: test | |
| uses: stackabletech/actions/run-integration-test@e8aed001d347bcf693e41b61f4098b0cb94b4ab6 # v0.18.0 | |
| with: | |
| replicated-api-token: ${{ secrets.REPLICATED_API_TOKEN }} | |
| otlp-bearer-token: ${{ secrets.OTLP_BEARER_TOKEN }} | |
| test-mode-input: ${{ steps.profile.outputs.PROFILE }} | |
| test-mode: profile | |
| - name: Send Notification | |
| if: ${{ failure() || github.run_attempt > 1 }} | |
| uses: stackabletech/actions/send-slack-notification@e8aed001d347bcf693e41b61f4098b0cb94b4ab6 # v0.18.0 | |
| with: | |
| slack-token: ${{ secrets.SLACK_INTEGRATION_TEST_TOKEN }} | |
| dashboard-url: ${{ steps.test.outputs.dashboard-url }} | |
| failed-tests: ${{ steps.test.outputs.failed-tests }} | |
| test-health: ${{ steps.test.outputs.health }} | |
| test-result: ${{ steps.test.conclusion }} | |
| channel-id: C07UYJYSMSN # notifications-integration-tests | |
| type: integration-test |