diff --git a/.github/workflows/branch-build.yml b/.github/workflows/branch-build.yml index 2b8d0d895..d3250437c 100644 --- a/.github/workflows/branch-build.yml +++ b/.github/workflows/branch-build.yml @@ -182,6 +182,7 @@ jobs: - name: Run ${{ matrix.integration }} tests env: SLACK_TESTER_APP_TOKEN: ${{ secrets.SLACK_TESTER_APP_TOKEN }} + SLACK_CLOUD_TESTER_APP_TOKEN: ${{ secrets.SLACK_CLOUD_TESTER_APP_TOKEN }} SLACK_ADDITIONAL_CONTEXT_MESSAGE: "Branch test - commit SHA: ${{github.sha}} - https://github.com/kubeshop/botkube/commit/${{github.sha}}" DISCORD_TESTER_APP_TOKEN: ${{ secrets.DISCORD_TESTER_APP_TOKEN }} DISCORD_GUILD_ID: ${{ secrets.DISCORD_GUILD_ID }} diff --git a/.github/workflows/pr-build.yaml b/.github/workflows/pr-build.yaml index 94503c1e8..a4b60a9df 100644 --- a/.github/workflows/pr-build.yaml +++ b/.github/workflows/pr-build.yaml @@ -250,6 +250,7 @@ jobs: - name: Run ${{ matrix.integration }} tests env: SLACK_TESTER_APP_TOKEN: ${{ secrets.SLACK_TESTER_APP_TOKEN }} + SLACK_CLOUD_TESTER_APP_TOKEN: ${{ secrets.SLACK_CLOUD_TESTER_APP_TOKEN }} SLACK_ADDITIONAL_CONTEXT_MESSAGE: "Pull request: ${{ github.event.pull_request.number }} - https://github.com/kubeshop/botkube/pull/${{ github.event.pull_request.number }}" DISCORD_TESTER_APP_TOKEN: ${{ secrets.DISCORD_TESTER_APP_TOKEN }} DISCORD_GUILD_ID: ${{ secrets.DISCORD_GUILD_ID }} @@ -257,7 +258,6 @@ jobs: PLUGINS_BINARIES_DIRECTORY: ${{ github.workspace }}/plugin-dist CONFIG_PROVIDER_API_KEY: ${{ secrets.CONFIG_PROVIDER_API_KEY }} CONFIG_PROVIDER_ENDPOINT: ${{ secrets.CONFIG_PROVIDER_ENDPOINT }} - SLACK_BOT_NAME: "botkubedev" CONFIG_PROVIDER_SLACK_WORKSPACE_TEAM_ID: ${{ secrets.CONFIG_PROVIDER_SLACK_WORKSPACE_TEAM_ID }} CONFIG_PROVIDER_IMAGE_TAG: ${{ env.IMAGE_TAG }} CONFIG_PROVIDER_HELM_REPO_DIRECTORY: ${{ github.workspace }}/helm diff --git a/test/commplatform/slack_tester.go b/test/commplatform/slack_tester.go index af3d14085..a96bc8258 100644 --- a/test/commplatform/slack_tester.go +++ b/test/commplatform/slack_tester.go @@ -26,6 +26,7 @@ type SlackConfig struct { TesterName string `envconfig:"default=tester"` AdditionalContextMessage string `envconfig:"optional"` TesterAppToken string + CloudTesterAppToken string RecentMessagesLimit int `envconfig:"default=6"` MessageWaitTimeout time.Duration `envconfig:"default=30s"` }