Skip to content

Commit

Permalink
Merge pull request #295 from newfold-labs/hotfix/spa-workflow
Browse files Browse the repository at this point in the history
Fix SPA and PHP workflows
  • Loading branch information
arunshenoy99 authored Aug 24, 2023
2 parents 8c0bbd2 + 82d8332 commit e3213a0
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/lint-check-php.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ on:
push:
paths:
- '**.php'
- '!build/**'
- '!build/**/*.php'
pull_request:
types: [opened, edited, reopened, ready_for_review]
paths:
Expand Down Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/lint-check-spa.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit e3213a0

Please sign in to comment.