diff --git a/.github/workflows/lint-check-php.yml b/.github/workflows/lint-check-php.yml index bb5452e46..ab539d60a 100644 --- a/.github/workflows/lint-check-php.yml +++ b/.github/workflows/lint-check-php.yml @@ -3,7 +3,7 @@ on: push: paths: - '**.php' - - '!build/**' + - '!build/**/*.php' pull_request: types: [opened, edited, reopened, ready_for_review] paths: @@ -33,7 +33,9 @@ jobs: - uses: technote-space/get-diff-action@v6 with: - SUFFIX_FILTER: .php + PATTERNS: | + **/*.php + !build/**/*.php - name: Get Composer cache directory id: composer-cache diff --git a/.github/workflows/lint-check-spa.yml b/.github/workflows/lint-check-spa.yml index 8c8470e4f..56075d054 100644 --- a/.github/workflows/lint-check-spa.yml +++ b/.github/workflows/lint-check-spa.yml @@ -45,7 +45,7 @@ jobs: # Installs @wordpress/scripts for lint checks if it does not exist in the cache. - name: Install dependencies - run: npm i @wordpress/scripts @newfold-labs/js-utility-ui-analytics + run: npm i @wordpress/scripts@26.10.0 @newfold-labs/js-utility-ui-analytics --legacy-peer-deps if: steps.cache.outputs.cache-hit != 'true' # Gets the files changed wrt to trunk and filters out the js files.