Skip to content

Commit d63fe72

Browse files
committed
update playwright workflows
1 parent 19a9e06 commit d63fe72

File tree

2 files changed

+14
-20
lines changed

2 files changed

+14
-20
lines changed

.github/workflows/playwright.yml

Lines changed: 14 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
name: Playwright Tests
22
on:
33
push:
4-
branches: [ main, master ]
4+
branches: [ master, develop ]
55
pull_request:
6-
branches: [ main, master ]
6+
branches: [ master, develop ]
77
jobs:
88
test:
99
timeout-minutes: 60
@@ -14,11 +14,18 @@ jobs:
1414
with:
1515
node-version: lts/*
1616
- name: Install dependencies
17-
run: npm ci
18-
- name: Install Playwright Browsers
19-
run: npx playwright install --with-deps
20-
- name: Run Playwright tests
21-
run: npx playwright test
17+
run: |
18+
npm ci
19+
npm run build:no-translate
20+
- name: Install wp-env
21+
run: |
22+
npm install -g @wordpress/env
23+
- name: Start wp-env
24+
run: wp-env start
25+
- name: Run playwright tests
26+
run: npm run test
27+
- name: Stop wp-env
28+
run: wp-env stop
2229
- uses: actions/upload-artifact@v4
2330
if: ${{ !cancelled() }}
2431
with:

.github/workflows/plugin-build.yml

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -27,19 +27,6 @@ jobs:
2727
node ./tools/append-build-version.js $VERSION_SUFFIX
2828
cp -r build/stackable stackable-$VERSION_SUFFIX
2929
30-
- name: Install wp-env
31-
run: |
32-
npm install -g @wordpress/env
33-
34-
- name: Start wp-env
35-
run: wp-env start
36-
37-
- name: Run playwright tests
38-
run: npm run test
39-
40-
- name: Stop wp-env
41-
run: wp-env stop
42-
4330
# Keep this for now. Our plan is to simplify all tests into this one
4431
# workflow, this is needed so we can reuse the build folder across sub jobs.
4532
# - name: Create plugin zip file artifact uses: actions/upload-artifact@v3

0 commit comments

Comments
 (0)