47 lines
1.3 KiB
YAML
47 lines
1.3 KiB
YAML
---
|
|
name: Run tests
|
|
|
|
on:
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
test:
|
|
name: TEST
|
|
runs-on: ubuntu-22.04
|
|
steps:
|
|
- name: Login to Azure - CI Subscription
|
|
uses: Azure/login@e15b166166a8746d1a47596803bd8c1b595455cf # v1.6.0
|
|
with:
|
|
creds: ${{ secrets.AZURE_KV_CI_SERVICE_PRINCIPAL }}
|
|
|
|
- name: Retrieve secrets
|
|
id: retrieve-secrets
|
|
uses: bitwarden/gh-actions/get-keyvault-secrets@main
|
|
with:
|
|
keyvault: "bitwarden-ci"
|
|
secrets: "devops-alerts-slack-webhook-url"
|
|
|
|
- name: Notify Slack
|
|
uses: slackapi/slack-github-action@v1.25.0
|
|
with:
|
|
channel-id: 'C05T0840415'
|
|
payload: |
|
|
{
|
|
"text": "Test Text",
|
|
"attachments": [
|
|
{
|
|
"pretext": "Test Deployment started",
|
|
"color": "dbab09",
|
|
"fields": [
|
|
{
|
|
"title": "Status",
|
|
"short": true,
|
|
"value": "In Progress"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|
|
env:
|
|
SLACK_WEBHOOK_URL: ${{ steps.retrieve-secrets.outputs.devops-alerts-slack-webhook-url }}
|
|
SLACK_WEBHOOK_TYPE: INCOMING_WEBHOOK |