Skip to content

Commit

Permalink
include checks and fixes.
Browse files Browse the repository at this point in the history
  • Loading branch information
elsongabriel committed Mar 5, 2024
1 parent 15be51a commit 2e52dc5
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions .github/workflows/prettier-php.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,6 @@ name: Format Prettier
on:
pull_request:
types: [ opened, synchronize, reopened, ready_for_review ]
merge_group:
push:
paths:
- '*/**'
jobs:
cancel-runs:
if: github.event_name == 'pull_request' && github.ref != 'refs/heads/main'
Expand Down Expand Up @@ -35,14 +31,17 @@ jobs:
token: ${{ secrets.GITHUB_TOKEN }}

- name: Setup Node.js
if: ${{ github.ref != 'refs/heads/main' }}
uses: actions/setup-node@v3
with:
node-version: 18

- name: Install Dependencies
if: ${{ github.ref != 'refs/heads/main' }}
run: npm install prettier @prettier/plugin-php stylelint-prettier

- name: Run prettier code format
if: ${{ github.ref != 'refs/heads/main' }}
run: npx prettier --write **/*.{php,js} --plugin=@prettier/plugin-php --ignore-unknown && npx stylelint **/*.css --fix

- name: Run add and commit
Expand Down

0 comments on commit 2e52dc5

Please sign in to comment.