-
-
Notifications
You must be signed in to change notification settings - Fork 13
73 lines (69 loc) · 2.16 KB
/
Copy pathchatroom-e2e.yml
File metadata and controls
73 lines (69 loc) · 2.16 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
65
66
67
68
69
70
71
72
73
name: Chatroom Browser Tests
# No deployment or database credentials are used by this isolated suite.
on:
workflow_dispatch: {}
pull_request:
branches: [main]
paths:
- 'apps/webapp/**'
- 'extensions/**'
- 'packages/**'
- 'scripts/**'
- '.github/actions/**'
- '.github/workflows/chatroom-e2e.yml'
- 'package.json'
- 'bun.lock'
- '*config*'
push:
branches: [main]
paths:
- 'apps/webapp/**'
- 'extensions/**'
- 'packages/**'
- 'scripts/**'
- '.github/actions/**'
- '.github/workflows/chatroom-e2e.yml'
- 'package.json'
- 'bun.lock'
- '*config*'
permissions:
contents: read
concurrency:
group: chatroom-e2e-${{ github.ref }}
cancel-in-progress: true
jobs:
chatroom:
name: Chatroom E2E
# Fork and Dependabot pull requests cannot use the commercial license secret.
if: >-
github.event_name != 'pull_request' ||
(github.event.pull_request.head.repo.full_name == github.repository && github.actor != 'dependabot[bot]')
runs-on: ubuntu-latest
timeout-minutes: 25
env:
NEXT_PUBLIC_VIRTUOSO_LICENSE: ${{ secrets.NEXT_PUBLIC_VIRTUOSO_LICENSE }}
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- uses: actions/setup-node@249970729cb0ef3589644e2896645e5dc5ba9c38 # v6
with:
node-version: '26.8.2'
- uses: ./.github/actions/setup-bun
with:
bun-version: '1.4.1'
- uses: ./.github/actions/setup-cypress
- name: Check Cypress report parsing
run: bun test scripts/run-tests.test.ts
- name: Run the isolated chatroom browser suite
run: bash scripts/test-chatroom.sh
- name: Retain results and failure screenshots
if: always()
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
with:
name: chatroom-e2e-${{ github.run_id }}
include-hidden-files: true
path: |
Notes/test-results-*.txt
Notes/.e2e-logs-*/
Notes/chatroom-server.log
apps/webapp/cypress/screenshots/
retention-days: 7