-
Notifications
You must be signed in to change notification settings - Fork 193
42 lines (39 loc) · 1.11 KB
/
e2e.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
name: e2e
on:
schedule:
- cron: '*/15 * * * *'
jobs:
e2e:
name: cypress
runs-on: ubuntu-latest
steps:
- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: '18.x'
- name: Checkout 🛎
uses: actions/checkout@v3
with:
ref: main
- name: Run Cypress 🌲
uses: cypress-io/github-action@v5
env:
CYPRESS_BASE_URL: https://egghead.io
- name: Cypress tests ✅
if: ${{ success() }}
run: |
curl --request POST \
--url ${{ secrets.EGGHEAD_STATUS_WEBHOOK }} \
--header 'content-type: application/json' \
--data '{
"text": "All systems operational ✅"
}'
- name: Cypress tests 🚨
if: ${{ failure() }}
run: |
curl --request POST \
--url ${{ secrets.EGGHEAD_STATUS_WEBHOOK }} \
--header 'content-type: application/json' \
--data '{
"text": "🚨 Check logs: https://github.com/eggheadio/egghead-next/actions?query=workflow%3Ae2e"
}'