From 0dba11331a83c5b403dd52464115d4dd22b49932 Mon Sep 17 00:00:00 2001 From: Pawel Kosiec Date: Tue, 2 Jul 2024 11:05:46 +0200 Subject: [PATCH] Revert "Add sample test" This reverts commit b3e3a320bb2684962e0fc90f98df764d357dc0b7. --- .github/actions/cloud-slack-e2e/action.yaml | 26 +++++------ .github/workflows/ui-test.yaml | 50 --------------------- 2 files changed, 13 insertions(+), 63 deletions(-) delete mode 100644 .github/workflows/ui-test.yaml diff --git a/.github/actions/cloud-slack-e2e/action.yaml b/.github/actions/cloud-slack-e2e/action.yaml index 0f8c8af49..1ed03b798 100644 --- a/.github/actions/cloud-slack-e2e/action.yaml +++ b/.github/actions/cloud-slack-e2e/action.yaml @@ -129,16 +129,16 @@ runs: FOOTER='https://github.com/kubeshop/botkube/actions/runs/${{ github.run_id }}' echo "footer=${FOOTER}" >> $GITHUB_OUTPUT -# - name: Slack Notification -# uses: rtCamp/action-slack-notify@v2 -# if: ${{ failure() }} -# env: -# SLACK_CHANNEL: 'botkube-cloud-ci-alerts' -# SLACK_USERNAME: Botkube Cloud CI -# SLACK_COLOR: 'red' -# SLACK_TITLE: 'Message' -# SLACK_MESSAGE: "Cloud Slack ${{ inputs.e2e_type }} E2E tests failed :scream:" -# SLACK_ICON_EMOJI: ':this-is-fine-fire:' -# SLACK_FOOTER: ${{ steps.footer.outputs.footer }} -# SLACK_TOKEN: ${{ inputs.slack_token }} -# SLACK_FILE_UPLOAD: ${{ env.SCREENSHOT_LOCATION }} + - name: Slack Notification + uses: rtCamp/action-slack-notify@v2 + if: ${{ failure() }} + env: + SLACK_CHANNEL: 'botkube-cloud-ci-alerts' + SLACK_USERNAME: Botkube Cloud CI + SLACK_COLOR: 'red' + SLACK_TITLE: 'Message' + SLACK_MESSAGE: "Cloud Slack ${{ inputs.e2e_type }} E2E tests failed :scream:" + SLACK_ICON_EMOJI: ':this-is-fine-fire:' + SLACK_FOOTER: ${{ steps.footer.outputs.footer }} + SLACK_TOKEN: ${{ inputs.slack_token }} + SLACK_FILE_UPLOAD: ${{ env.SCREENSHOT_LOCATION }} diff --git a/.github/workflows/ui-test.yaml b/.github/workflows/ui-test.yaml deleted file mode 100644 index 2d9419e82..000000000 --- a/.github/workflows/ui-test.yaml +++ /dev/null @@ -1,50 +0,0 @@ -name: Test UI E2E tests on PR - -on: - push: - branches: - - improve-slack-tests - -env: - GIT_USER: botkube-dev - HELM_VERSION: v3.9.0 - K3D_VERSION: v5.4.6 - IMAGE_REGISTRY: "ghcr.io" - IMAGE_REPOSITORY: "kubeshop/botkube" - IMAGE_TAG: v9.99.9-dev # TODO: Use commit hash tag to make the predictable builds for each commit on branch - -jobs: - cloud-slack-dev-e2e: - name: Botkube Cloud Slack Dev E2E - runs-on: ubuntu-latest - permissions: - contents: read - packages: read - concurrency: - group: cloud-slack-dev-e2e - cancel-in-progress: false - steps: - - name: Checkout - uses: actions/checkout@v4 - - - name: Run e2e tests - uses: ./.github/actions/cloud-slack-e2e - with: - access_token: ${{ secrets.E2E_TEST_GH_DEV_ACCOUNT_PAT }} - - slack_workspace_name: ${{ secrets.E2E_DEV_SLACK_WORKSPACE_NAME }} - slack_email: ${{ secrets.E2E_DEV_SLACK_EMAIL }} - slack_password: ${{ secrets.E2E_DEV_SLACK_USER_PASSWORD }} - slack_bot_display_name: "BotkubeDev" - slack_tester_bot_token: ${{ secrets.E2E_DEV_SLACK_TESTER_BOT_TOKEN }} - slack_tester_bot_name: "botkubedev" - - botkube_cloud_ui_base_url: "https://app-dev.botkube.io" - botkube_cloud_api_base_url: "https://api-dev.botkube.io" - botkube_cloud_email: ${{ secrets.E2E_DEV_BOTKUBE_CLOUD_EMAIL }} - botkube_cloud_password: ${{ secrets.E2E_DEV_BOTKUBE_CLOUD_PASSWORD }} - botkube_cloud_team_organization_id: ${{ secrets.E2E_DEV_BOTKUBE_CLOUD_TEAM_ORGANIZATION_ID }} - - slack_token: ${{ secrets.SLACK_APP_TOKEN_FOR_CI_ALERTS }} - - e2e_type: "DEV"