Skip to content

Commit

Permalink
Enforce workflow timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
ahegyes committed Aug 21, 2024
1 parent 3d60717 commit 94e2105
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 2 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/block-json-check.yml
Original file line number Diff line number Diff line change
@@ -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
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/js-css-coding-standards.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ on:
jobs:
lint-js_css-files:
runs-on: ubuntu-latest
timeout-minutes: 3

steps:
- uses: actions/checkout@v4
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/php-coding-standards.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ jobs:
php: [ 8.2 ]

runs-on: ubuntu-latest
timeout-minutes: 3

steps:
- uses: actions/checkout@v4
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/php-syntax-errors.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit 94e2105

Please sign in to comment.