Repository navigation
64 lines (60 loc) · 2.14 KB
/
Copy patheditor-e2e.yml
File metadata and controls
64 lines (60 loc) · 2.14 KB
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
55
56
57
58
59
60
61
62
63
64
name: Editor Browser Tests
# Runs beside the deploy, not as a gate (#477 ruling, 2026-10-24).
# No deployment or database credentials are used by this isolated suite.
on:
workflow_dispatch: {}
push:
branches: [main]
paths:
- 'apps/webapp/**'
- 'extensions/**'
- 'packages/**'
- 'scripts/**'
- '.github/actions/**'
- '.github/workflows/editor-e2e.yml'
- 'package.json'
- 'bun.lock'
- '*config*'
permissions:
contents: read
actions: read
concurrency:
group: editor-e2e-${{ github.ref }}
cancel-in-progress: true
jobs:
editor:
name: Editor E2E
runs-on: ubuntu-latest
# A local run took about 10 minutes, build plus suite (#477). CI runners are slower.
timeout-minutes: 25
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7.1.0
with:
node-version: '26.8.2'
- uses: ./.github/actions/setup-bun
- uses: ./.github/actions/setup-cypress
- name: Run the isolated editor browser suite
run: bash scripts/test-editor.sh
- name: Retain results and failure screenshots
if: always()
uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2
with:
name: editor-e2e-${{ github.run_id }}
include-hidden-files: true
path: |
Notes/test-results-*.txt
Notes/.e2e-logs-*/
Notes/editor-server.log
apps/webapp/cypress/screenshots/
retention-days: 7
- name: 📣 Notify editor E2E failure
if: failure() && github.event_name == 'push'
env:
GH_TOKEN: ${{ github.token }}
TELEGRAM_BOT_TOKEN: ${{ secrets.TELEGRAM_BOT_TOKEN }}
TELEGRAM_CHAT_ID: ${{ secrets.TELEGRAM_CHAT_ID }}
# Red after green only (#557 mode a): a suite already red stays quiet.
run: |
bash .github/scripts/notify-e2e-red-after-green.sh \
"🧪 Editor E2E FAILED on main (${GITHUB_SHA::9}): ${GITHUB_SERVER_URL}/${GITHUB_REPOSITORY}/actions/runs/${GITHUB_RUN_ID}"