Skip to content

Commit 450c137

Browse files
committed
fix: Playwright job steps
1 parent 381bdf9 commit 450c137

File tree

1 file changed

+8
-14
lines changed

1 file changed

+8
-14
lines changed

.github/workflows/playwright.yml

Lines changed: 8 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -23,15 +23,15 @@ concurrency:
2323
cancel-in-progress: ${{ github.event_name == 'pull_request' }}
2424

2525
jobs:
26-
build-plugin:
27-
if: github.event_name != 'pull_request' || contains(github.event.pull_request.labels.*.name, 'run-tests')
28-
name: Build plugin
29-
uses: ./.github/workflows/build.yml
26+
# build-plugin:
27+
# if: github.event_name != 'pull_request' || contains(github.event.pull_request.labels.*.name, 'run-tests')
28+
# name: Build plugin
29+
# uses: ./.github/workflows/build.yml
3030

3131
Playwright:
3232
name: Playwright test on PHP 8.1
3333
runs-on: ubuntu-22.04
34-
needs: [build-plugin]
34+
# needs: [build-plugin]
3535
if: github.event_name != 'pull_request' || contains(github.event.pull_request.labels.*.name, 'run-tests')
3636
steps:
3737
- name: Checkout source code
@@ -43,16 +43,10 @@ jobs:
4343
node-version: 20.x
4444
cache: 'npm'
4545

46-
- name: Download build artifact
47-
uses: actions/download-artifact@v4
48-
with:
49-
artifact-ids: ${{ needs.build-plugin.outputs.artifact_id }}
50-
path: ./build
51-
52-
- name: Copy built plugin to source directory
46+
- name: Install & Build
47+
id: build
5348
run: |
54-
rm -rf ./src
55-
cp -r ./build/code-snippets ./src
49+
npm install && npm run bundle
5650
5751
- name: Install workflow dependencies (wp-env, playwright)
5852
run: npm run prepare-environment:ci

0 commit comments

Comments
 (0)