Skip to content

Commit c19c7b4

Browse files
brackets-ioabose
authored andcommitted
ci: playwright test suit run in actions refactor
1 parent 3f7af77 commit c19c7b4

15 files changed

+485
-403
lines changed

.github/workflows/playwright-chromium-integ.yml

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

.github/workflows/playwright-chromium.yml

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

.github/workflows/playwright-firefox-integ.yml

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

.github/workflows/playwright-firefox.yml

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

.github/workflows/playwright-on-push.yml

Lines changed: 0 additions & 165 deletions
This file was deleted.
Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
name: Playwright-Chromium-linux run full tests suite
2+
on:
3+
pull_request:
4+
branches: [ main ]
5+
jobs:
6+
playwright-chromium-linux:
7+
timeout-minutes: 90
8+
runs-on: ubuntu-latest
9+
steps:
10+
- uses: actions/checkout@v3
11+
- name: Install dependencies
12+
run: npm ci
13+
- name: Build phoenix
14+
run: npm run build
15+
- name: Install Playwright Browsers
16+
run: npx playwright install --with-deps
17+
18+
- name: Run Playwright unit tests in Chromium
19+
uses: nick-fields/retry@v2
20+
with:
21+
timeout_minutes: 12
22+
max_attempts: 3
23+
command: npm run testChromium
24+
25+
- name: Run Playwright integration tests in Chromium
26+
uses: nick-fields/retry@v2
27+
with:
28+
timeout_minutes: 12
29+
max_attempts: 3
30+
command: npx cross-env TEST_ENV=integration npm run testChromium
31+
32+
- name: Run Playwright mainview tests in Chromium
33+
uses: nick-fields/retry@v2
34+
with:
35+
timeout_minutes: 12
36+
max_attempts: 3
37+
command: npx cross-env TEST_ENV=mainview npm run testChromium
38+
39+
- name: Run Playwright livepreview tests in Chromium
40+
uses: nick-fields/retry@v2
41+
with:
42+
timeout_minutes: 15
43+
max_attempts: 3
44+
command: npx cross-env TEST_ENV=livepreview npm run testChromium
45+
46+
- name: Run Playwright LegacyInteg tests in Chromium
47+
uses: nick-fields/retry@v2
48+
with:
49+
timeout_minutes: 20
50+
max_attempts: 3
51+
command: npx cross-env TEST_ENV=LegacyInteg npm run testChromium

0 commit comments

Comments
 (0)