File tree Expand file tree Collapse file tree 2 files changed +14
-20
lines changed
Expand file tree Collapse file tree 2 files changed +14
-20
lines changed Original file line number Diff line number Diff line change 11name : Playwright Tests
22on :
33 push :
4- branches : [ main, master ]
4+ branches : [ master, develop ]
55 pull_request :
6- branches : [ main, master ]
6+ branches : [ master, develop ]
77jobs :
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 :
Original file line number Diff line number Diff line change 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
You can’t perform that action at this time.
0 commit comments