-
Notifications
You must be signed in to change notification settings - Fork 2
58 lines (52 loc) · 1.72 KB
/
test-daily.regression.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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
name: Daily Regression
on:
workflow_dispatch:
schedule:
- cron: '0 11 * * 1-5'
env:
ELECTRON_EXTRA_LAUNCH_ARGS: '--disable-gpu'
jobs:
Regression:
runs-on: ubuntu-latest
# Cypress Docker image with Chrome v91
# and Firefox v89 pre-installed
container: cypress/browsers:node-18.16.0-chrome-112.0.5615.121-1-ff-112.0.1-edge-112.0.1722.48-1
environment: dev
steps:
- uses: actions/checkout@v1
name: Checkout
- name: cypress.env.json
run: |
echo '${{ secrets.CYPRESS_ENV_CI }}' > ./tests-e2e/cypress.env.json
- uses: cypress-io/github-action@v5
with:
browser: chrome
working-directory: ./tests-e2e
# - uses: actions/upload-artifact@v1
# if: failure()
# with:
# name: cypress-screenshots
# path: ./tests-e2e/cypress/screenshots
# - uses: actions/upload-artifact@v1
# if: always()
# with:
# name: cypress-videos
# path: ./tests-e2e/cypress/videos
- name: Rocket.Chat Notification
uses: RocketChat/Rocket.Chat.GitHub.Action.Notification@1.1.1
if: failure()
with:
type: ${{ job.status }}
job_name: "EDX Daily Regression - DEV --->"
icon_emoji: ":bell:"
channel: "educ-automation-failures"
url: ${{ secrets.ROCKETCHAT_WEBHOOK_FAILURES }}
- name: Rocket.Chat Notification
uses: RocketChat/Rocket.Chat.GitHub.Action.Notification@1.1.1
if: success()
with:
type: ${{ job.status }}
job_name: "EDX Daily Regression - DEV --->"
icon_emoji: ":bell:"
channel: "pen-automation-notifications"
url: ${{ secrets.ROCKETCHAT_WEBHOOK }}