diff --git a/.github/workflows/block-json-check.yml b/.github/workflows/block-json-check.yml index b4fdfa2..3b63171 100644 --- a/.github/workflows/block-json-check.yml +++ b/.github/workflows/block-json-check.yml @@ -1,12 +1,13 @@ name: Test for block.json files. -on: +on: pull_request: branches: [ trunk, develop ] jobs: block-file-check: runs-on: ubuntu-latest + timeout-minutes: 3 steps: - uses: actions/checkout@v4 diff --git a/.github/workflows/js-css-coding-standards.yml b/.github/workflows/js-css-coding-standards.yml index 591a1d1..7254e3e 100644 --- a/.github/workflows/js-css-coding-standards.yml +++ b/.github/workflows/js-css-coding-standards.yml @@ -9,6 +9,7 @@ on: jobs: lint-js_css-files: runs-on: ubuntu-latest + timeout-minutes: 3 steps: - uses: actions/checkout@v4 diff --git a/.github/workflows/php-coding-standards.yml b/.github/workflows/php-coding-standards.yml index 2e7939d..db4ee92 100644 --- a/.github/workflows/php-coding-standards.yml +++ b/.github/workflows/php-coding-standards.yml @@ -13,6 +13,7 @@ jobs: php: [ 8.2 ] runs-on: ubuntu-latest + timeout-minutes: 3 steps: - uses: actions/checkout@v4 diff --git a/.github/workflows/php-syntax-errors.yml b/.github/workflows/php-syntax-errors.yml index b790363..95b10a3 100644 --- a/.github/workflows/php-syntax-errors.yml +++ b/.github/workflows/php-syntax-errors.yml @@ -13,6 +13,7 @@ jobs: php: [ 8.2, 8.3 ] # Include all PHP versions between the site's current version and the latest release version. runs-on: ubuntu-latest + timeout-minutes: 5 steps: - uses: actions/checkout@v4 diff --git a/package.json b/package.json index 3e84575..6e4c096 100644 --- a/package.json +++ b/package.json @@ -66,7 +66,7 @@ "lint:readme-md": "wp-scripts lint-md-docs README.md", "lint:scripts": "npm-run-all --sequential lint:scripts:**", "lint:scripts:theme": "wp-scripts lint-js themes/$npm_package_name --no-error-on-unmatched-pattern", - "lint:scripts:mu-plugins": "wp-scripts lint-js 'mu-plugins/**/src/**/*.js' --no-error-on-unmatched-pattern", + "lint:scripts:mu-plugins": "wp-scripts lint-js mu-plugins --no-error-on-unmatched-pattern", "lint:styles": "npm-run-all --sequential lint:styles:**", "lint:styles:theme": "wp-scripts lint-style themes/$npm_package_name/**/*.{css,sass,scss} !themes/$npm_package_name/style*.css --allow-empty-input --report-descriptionless-disables --report-invalid-scope-disables --report-needless-disables", "lint:styles:mu-plugins": "wp-scripts lint-style mu-plugins/**/*.{css,sass,scss} --allow-empty-input --report-descriptionless-disables --report-invalid-scope-disables --report-needless-disables",