-
Notifications
You must be signed in to change notification settings - Fork 11
44 lines (43 loc) · 1.23 KB
/
e2e-canary.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
# ~~ Generated by projen. To modify, edit .projenrc.ts and run "npx projen".
name: e2e-canary
on:
schedule:
- cron: "*/30 * * * *"
workflow_dispatch: {}
jobs:
test:
name: constructs.dev canary
runs-on: ubuntu-latest
permissions:
checks: write
contents: read
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Cypress Run
uses: cypress-io/github-action@v3
env:
DEBUG: "@cypress/github-action"
with:
start: yarn proxy-server:ci
wait-on: http://localhost:3000
wait-on-timeout: 150
- if: failure()
uses: actions/upload-artifact@v3
with:
name: cypress-screenshots
path: cypress/screenshots
- if: always()
uses: actions/upload-artifact@v3
with:
name: cypress-videos
path: cypress/videos
- name: Create failure issue
if: failure()
uses: imjohnbo/issue-bot@v3
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
labels: failed-release
title: E2E Canary for https://constructs.dev failed.
body: See https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}