Skip to content

e2e

e2e #109636

Workflow file for this run

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"
}'