Integration Test #35
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: Integration Test | |
env: | |
DEFAULT_TEST_PLATFORM: kind-1.31.0 | |
DEFAULT_TEST_ARCHITECTURE: amd64 | |
DEFAULT_TEST_RUN: all | |
DEFAULT_TEST_PARAMETER: "" # Unused when the test-run is 'all' | |
on: | |
# schedule: | |
# At 00:00 on Sunday. See: https://crontab.guru/#0_0_*_*_0 | |
# - cron: "0 0 * * 0" | |
workflow_dispatch: | |
inputs: | |
test-mode: | |
description: Test mode | |
required: true | |
type: choice | |
options: | |
- custom | |
- profile | |
test-mode-input: | |
description: The profile or the runner used | |
required: true | |
test-suite: | |
description: Name of the test-suite. Only used if test-mode is `custom` | |
test: | |
description: Name of the test. Only used of test-mode is `custom` | |
jobs: | |
test: | |
name: Run Integration Test | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 | |
with: | |
persist-credentials: false | |
submodules: recursive | |
# TODO: Enable the scheduled runs which hard-code what profile to use | |
- name: Run Integration Test | |
id: test | |
uses: stackabletech/actions/run-integration-test@48f987367d0cb42db1248d050faabcdf26218f1e # TODO: Use released version | |
with: | |
replicated-api-token: ${{ secrets.REPLICATED_API_TOKEN }} | |
test-mode-input: ${{ inputs.test-mode-input }} | |
test-suite: ${{ inputs.test-suite }} | |
test-mode: ${{ inputs.test-mode }} | |
test: ${{ inputs.test }} | |
# TODO: Comment back in once integration tests itself work. Also add improvements to the notifications. | |
# - name: Send Notification | |
# if: ${{ failure() }} | |
# env: | |
# SLACK_BOT_TOKEN: ${{ secrets.SLACK_INTEGRATION_TEST_TOKEN }} | |
# uses: slackapi/slack-github-action@37ebaef184d7626c5f204ab8d3baff4262dd30f0 # v1.27.0 | |
# with: | |
# channel-id: "C07UYJYSMSN" # notifications-integration-tests | |
# payload: | | |
# { | |
# "text": "Integration Test for *${{ github.repository }}* failed", | |
# "attachments": [ | |
# { | |
# "pretext": "Started at ${{ steps.test.outputs.start-time }}, failed at ${{ steps.test.outputs.end-time }}", | |
# "color": "#aa0000", | |
# "actions": [ | |
# { | |
# "type": "button", | |
# "text": "Go to integration test run", | |
# "url": "${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}" | |
# } | |
# ] | |
# } | |
# ] | |
# } |