Fix code quality issues and GitHub Actions workflows

This commit is contained in:
2025-04-22 22:30:31 +01:00
parent f3d6bd2434
commit 0c4e91fcec
10 changed files with 61 additions and 22 deletions

View File

@@ -2,12 +2,15 @@ name: WordPress Playground Tests Fix
on:
push:
branches: [ main, feature/*, bugfix/* ]
branches: [ main ]
pull_request:
branches: [ main ]
permissions:
contents: read
concurrency:
group: playground-tests-${{ github.ref }}
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
@@ -31,10 +34,7 @@ jobs:
run: npm install --save-dev @wp-playground/cli
- name: Create plugin zip
run: |
mkdir -p dist
zip -r dist/plugin.zip . \
-x "node_modules/**" "dist/**" ".git/**" ".github/**" ".wiki/**"
uses: ./.github/actions/create-plugin-zip
- name: Run tests with WordPress Playground
run: |