[BRE-50] Upgrade Slack Messages To New Pattern #78
Workflow file for this run
This file contains 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: Test report-deployment-status-to-slack | |
on: | |
pull_request: | |
paths: | |
- "report-deployment-status-to-slack/**" | |
- ".github/workflows/test-report-deployment-status-to-slack.yml" | |
jobs: | |
test-report-start: | |
name: Test Slack report | |
runs-on: ubuntu-22.04 | |
steps: | |
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 | |
- name: Start | |
uses: ./report-deployment-status-to-slack | |
with: | |
project: Server | |
environment: test-alert | |
tag: test-workflow-start | |
event: 'start' | |
commit-sha: ${{ github.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: Server | |
environment: test-alert | |
tag: test-workflow-success | |
event: 'success' | |
commit-sha: ${{ github.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: Server | |
environment: test-alert | |
tag: test-workflow-failure | |
event: 'failure' | |
commit-sha: ${{ github.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: Server | |
environment: test-alert | |
tag: test-workflow-failure | |
event: 'no-changes' | |
commit-sha: ${{ github.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: Server | |
environment: "US-QA Cloud" | |
tag: test-workflow-failure | |
event: 'success' | |
commit-sha: ${{ github.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: Server | |
environment: "US-DEV Cloud" | |
tag: test-workflow-failure | |
event: 'no-changes' | |
commit-sha: ${{ github.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@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 | |
- name: With DB migration true on main | |
uses: ./report-deployment-status-to-slack | |
with: | |
project: Server | |
environment: test-alert | |
tag: main | |
event: 'success' | |
commit-sha: ${{ github.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: Server | |
environment: test-alert | |
tag: main | |
event: 'failure' | |
commit-sha: ${{ github.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: Server | |
environment: test-alert | |
tag: test-branch-failure | |
event: 'failure' | |
commit-sha: ${{ github.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: Server | |
environment: test-alert | |
tag: test-branch-success | |
event: 'success' | |
commit-sha: ${{ github.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 true on test branch | |
uses: ./report-deployment-status-to-slack | |
with: | |
project: Server | |
environment: US-QA Cloud | |
tag: test-branch-failure | |
event: 'failure' | |
commit-sha: ${{ github.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: Server | |
environment: US-DEV Cloud | |
tag: test-branch-success | |
event: 'success' | |
commit-sha: ${{ github.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 }} |