-
Notifications
You must be signed in to change notification settings - Fork 13
40 lines (34 loc) · 1.28 KB
/
nightly.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
name: 'dhis2: nightly'
# This workflow runs the e2e tests on the default branch against dev at 4:20am M-F
on:
# schedule:
# - cron: '20 4 * * 1-5'
workflow_dispatch:
concurrency:
group: ${{ github.workflow}}-${{ github.ref }}
cancel-in-progress: true
defaults:
run:
shell: bash
jobs:
call-workflow-e2e-dev:
uses: dhis2/workflows/.github/workflows/analytics-e2e-tests-dev.yml@master
secrets:
username: ${{ secrets.CYPRESS_DHIS2_USERNAME }}
password: ${{ secrets.CYPRESS_DHIS2_PASSWORD }}
recordkey: ${{ secrets.CYPRESS_RECORD_KEY }}
send-slack-message:
runs-on: ubuntu-latest
needs: call-workflow-e2e-dev
if: |
failure() &&
!cancelled()
steps:
- name: Send failure message to analytics-internal-kfmt slack channel
id: slack
uses: slackapi/[email protected]
with:
channel-id: ${{ secrets.SLACK_CHANNEL_ID }}
slack-message: ':maps-app: Maps-app e2e nightly run <https://cloud.cypress.io/projects/r5jduj/runs?branches=[{"label":"dev","suggested":false,"value":"dev"}]|failed>'
env:
SLACK_BOT_TOKEN: ${{ secrets.SLACK_BOT_TOKEN }}