Skip to content

Commit 36778ec

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 6b380dc commit 36778ec

File tree

2 files changed

+37
-44
lines changed

2 files changed

+37
-44
lines changed

.github/workflows/playwright.yml

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

.github/workflows/tests.yml

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

0 commit comments

Comments
 (0)