-
Notifications
You must be signed in to change notification settings - Fork 0
37 lines (35 loc) · 978 Bytes
/
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
name: End-to-end Tests
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Use Node.js
uses: actions/setup-node@v4
with:
node-version: '20.x'
- run: npm ci
- name: Run end-to-end tests
run: xvfb-run npm run test:e2e
- name: Merge reports
run: npx ctrf merge e2e/reports --output ctrf-report.json
- name: Publish Test Summary Results
run: |
npm run gh:ctrf -- e2e/reports/ctrf-report.json
mkdir -p ./pr-comment
cp $GITHUB_STEP_SUMMARY pr-comment/pr-comment.html
- name: Save PR Number
run: echo ${{ github.event.number }} > pr-comment/PR-number.txt
- name: Upload Summary as Artifact
uses: actions/upload-artifact@v4
with:
name: pr-comment
path: pr-comment/
retention-days: 1