Skip to content

Commit a006fe8

Browse files
committed
Move Playwright tests to Tests Workflow itself
Currently the test-results and annotations form jobs are getting added to random Workflow and there is no fix for it right now Ref: EnricoMi/publish-unit-test-result-action#12 Also Playwright tests have the same triggers as Tests, so no need to keep it separate.
1 parent 577d54b commit a006fe8

File tree

2 files changed

+38
-44
lines changed

2 files changed

+38
-44
lines changed

.github/workflows/playwright.yml

Lines changed: 0 additions & 44 deletions
This file was deleted.

.github/workflows/tests.yml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,5 +91,43 @@ jobs:
9191
uses: EnricoMi/publish-unit-test-result-action@v2
9292
if: always()
9393
with:
94+
check_name: CLI Test Results
9495
files: packages/bruno-tests/collection/junit.xml
9596
comment_mode: always
97+
e2e-test:
98+
name: Playwright E2E Tests
99+
timeout-minutes: 60
100+
runs-on: ubuntu-24.04
101+
steps:
102+
- uses: actions/checkout@v4
103+
- uses: actions/setup-node@v4
104+
with:
105+
node-version: v22.11.x
106+
- name: Install dependencies
107+
run: |
108+
sudo apt-get update
109+
sudo apt-get --no-install-recommends install -y \
110+
libglib2.0-0 libnss3 libdbus-1-3 libatk1.0-0 libatk-bridge2.0-0 libcups2 libgtk-3-0 libasound2t64 \
111+
xvfb
112+
npm ci --legacy-peer-deps
113+
sudo chown root /home/runner/work/bruno/bruno/node_modules/electron/dist/chrome-sandbox
114+
sudo chmod 4755 /home/runner/work/bruno/bruno/node_modules/electron/dist/chrome-sandbox
115+
116+
- name: Build libraries
117+
run: |
118+
npm run build:graphql-docs
119+
npm run build:bruno-query
120+
npm run build:bruno-common
121+
npm run sandbox:bundle-libraries --workspace=packages/bruno-js
122+
npm run build:bruno-converters
123+
npm run build:bruno-requests
124+
125+
- name: Run Playwright tests
126+
run: |
127+
xvfb-run npm run test:e2e
128+
- uses: actions/upload-artifact@v4
129+
if: ${{ !cancelled() }}
130+
with:
131+
name: playwright-report
132+
path: playwright-report/
133+
retention-days: 30

0 commit comments

Comments
 (0)