Skip to content

Commit

Permalink
Run pre-commit hooks
Browse files Browse the repository at this point in the history
  • Loading branch information
HardeepAsrani committed Dec 22, 2023
1 parent 37b2f24 commit 40d5ddf
Show file tree
Hide file tree
Showing 7 changed files with 30 additions and 36 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/create-build-url.yml
Original file line number Diff line number Diff line change
Expand Up @@ -97,4 +97,4 @@ jobs:
with:
comment-id: ${{ steps.find-comment.outputs.comment-id }}
edit-mode: replace
body: ${{ steps.get-comment-body.outputs.body }}
body: ${{ steps.get-comment-body.outputs.body }}
48 changes: 24 additions & 24 deletions .github/workflows/test-js.yml
Original file line number Diff line number Diff line change
@@ -1,29 +1,29 @@
name: Test JS

on:
pull_request:
types: [ opened, synchronize, ready_for_review ]
pull_request:
types: [opened, synchronize, ready_for_review]

jobs:
run:
runs-on: ubuntu-latest
if: github.event.pull_request.draft == false && github.event.pull_request.head.repo.full_name == github.event.pull_request.base.repo.full_name
strategy:
matrix:
node-version: [20.x]
name: JS Test
steps:
- uses: actions/checkout@master
with:
persist-credentials: false
- name: Build files using ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- name: Lint js files
run: |
npm install -g npm
npm ci
npm run lint:js
env:
CI: true
run:
runs-on: ubuntu-latest
if: github.event.pull_request.draft == false && github.event.pull_request.head.repo.full_name == github.event.pull_request.base.repo.full_name
strategy:
matrix:
node-version: [20.x]
name: JS Test
steps:
- uses: actions/checkout@master
with:
persist-credentials: false
- name: Build files using ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- name: Lint js files
run: |
npm install -g npm
npm ci
npm run lint:js
env:
CI: true
2 changes: 1 addition & 1 deletion .github/workflows/test-php.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,4 +59,4 @@ jobs:
- name: Install composer
run: composer install --prefer-dist --no-progress --no-suggest
- name: PHPStan Static Analysis
run: composer phpstan
run: composer phpstan
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,6 @@
"tailwindcss": "^3.4.0"
},
"simple-git-hooks": {
"pre-commit": "npm run lint:js && compose run-script lint && composer run-script phpstan"
"pre-commit": "npm run lint:js && composer run-script lint && composer run-script phpstan"
}
}
6 changes: 2 additions & 4 deletions postcss.config.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
module.exports = {
plugins: [
require( 'tailwindcss' ),
],
};
plugins: [ require( 'tailwindcss' ) ],
};
2 changes: 0 additions & 2 deletions src/App.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
/**
* WordPress dependencies.
*/
import { Modal } from '@wordpress/components';

const App = () => {
return (
<div className="fixed z-50 bg-black overflow-auto inset-0">
Expand Down
4 changes: 1 addition & 3 deletions tailwind.config.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
/** @type {import('tailwindcss').Config} */
module.exports = {
content: [
'./src/*.js'
],
content: [ './src/*.js' ],
theme: {
extend: {},
},
Expand Down

0 comments on commit 40d5ddf

Please sign in to comment.