Skip to content

[deps] report-deployment-status-to-slack: Update slackapi/slack-github-action action to v1.27.1 #144

[deps] report-deployment-status-to-slack: Update slackapi/slack-github-action action to v1.27.1

[deps] report-deployment-status-to-slack: Update slackapi/slack-github-action action to v1.27.1 #144

name: Test report-deployment-status-to-slack
on:
pull_request:
paths:
- "report-deployment-status-to-slack/**"
- ".github/workflows/test-report-deployment-status-to-slack.yml"
env:
TEST_REPORT_PROJECT: Server
TEST_REPORT_COMMIT_SHA: "50f7fa03dbc0f18a641206ab1a92fb11a1131572" # Use a valid commit in Server (TEST_REPORT_PROJECT) to validate the links
jobs:
test-report-start:
name: Test Slack report
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: Start
uses: ./report-deployment-status-to-slack
with:
project: $TEST_REPORT_PROJECT
environment: EU-QA Cloud
slack-channel: bre-alerts-test
tag: test-workflow-start
event: 'start'
commit-sha: $TEST_REPORT_COMMIT_SHA
url: https://github.com/bitwarden/gh-actions/actions/runs/${{ github.run_id }}
AZURE_KV_CI_SERVICE_PRINCIPAL: ${{ secrets.AZURE_KV_CI_SERVICE_PRINCIPAL }}
- name: Success
uses: ./report-deployment-status-to-slack
with:
project: $TEST_REPORT_PROJECT
environment: US-QA Cloud
slack-channel: bre-alerts-test
tag: test-workflow-success
event: 'success'
commit-sha: $TEST_REPORT_COMMIT_SHA
url: https://github.com/bitwarden/gh-actions/actions/runs/${{ github.run_id }}
AZURE_KV_CI_SERVICE_PRINCIPAL: ${{ secrets.AZURE_KV_CI_SERVICE_PRINCIPAL }}
- name: Failure
uses: ./report-deployment-status-to-slack
with:
project: $TEST_REPORT_PROJECT
environment: US-QA Cloud
slack-channel: bre-alerts-test
tag: test-workflow-failure
event: 'failure'
commit-sha: $TEST_REPORT_COMMIT_SHA
url: https://github.com/bitwarden/gh-actions/actions/runs/${{ github.run_id }}
AZURE_KV_CI_SERVICE_PRINCIPAL: ${{ secrets.AZURE_KV_CI_SERVICE_PRINCIPAL }}
- name: No Changes
uses: ./report-deployment-status-to-slack
with:
project: $TEST_REPORT_PROJECT
environment: EU-QA Cloud
slack-channel: bre-alerts-test
tag: test-workflow-failure
event: 'no-changes'
commit-sha: $TEST_REPORT_COMMIT_SHA
url: https://github.com/bitwarden/gh-actions/actions/runs/${{ github.run_id }}
AZURE_KV_CI_SERVICE_PRINCIPAL: ${{ secrets.AZURE_KV_CI_SERVICE_PRINCIPAL }}
test-report-db-migration:
name: Test Slack report with different DB migration scenerios
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: With DB migration true on main
uses: ./report-deployment-status-to-slack
with:
project: $TEST_REPORT_PROJECT
environment: EU-QA Cloud
slack-channel: bre-alerts-test
tag: main
event: 'success'
commit-sha: $TEST_REPORT_COMMIT_SHA
db_migration_detected: true
url: https://github.com/bitwarden/gh-actions/actions/runs/${{ github.run_id }}
AZURE_KV_CI_SERVICE_PRINCIPAL: ${{ secrets.AZURE_KV_CI_SERVICE_PRINCIPAL }}
- name: With DB migration false on main
uses: ./report-deployment-status-to-slack
with:
project: $TEST_REPORT_PROJECT
environment: US-QA Cloud
slack-channel: bre-alerts-test
tag: main
event: 'failure'
commit-sha: $TEST_REPORT_COMMIT_SHA
db_migration_detected: false
url: https://github.com/bitwarden/gh-actions/actions/runs/${{ github.run_id }}
AZURE_KV_CI_SERVICE_PRINCIPAL: ${{ secrets.AZURE_KV_CI_SERVICE_PRINCIPAL }}
- name: With DB migration true on test branch
uses: ./report-deployment-status-to-slack
with:
project: $TEST_REPORT_PROJECT
environment: EU-QA Cloud
slack-channel: bre-alerts-test
tag: test-branch-failure
event: 'failure'
commit-sha: $TEST_REPORT_COMMIT_SHA
db_migration_detected: false
url: https://github.com/bitwarden/gh-actions/actions/runs/${{ github.run_id }}
AZURE_KV_CI_SERVICE_PRINCIPAL: ${{ secrets.AZURE_KV_CI_SERVICE_PRINCIPAL }}
- name: With DB migration false on test branch
uses: ./report-deployment-status-to-slack
with:
project: $TEST_REPORT_PROJECT
environment: US-QA Cloud
slack-channel: bre-alerts-test
tag: test-branch-success
event: 'success'
commit-sha: $TEST_REPORT_COMMIT_SHA
db_migration_detected: true
url: https://github.com/bitwarden/gh-actions/actions/runs/${{ github.run_id }}
AZURE_KV_CI_SERVICE_PRINCIPAL: ${{ secrets.AZURE_KV_CI_SERVICE_PRINCIPAL }}