Skip to content

Commit

Permalink
Merge branch 'main' into feat/implement-redux
Browse files Browse the repository at this point in the history
  • Loading branch information
jasonbahl authored Feb 28, 2024
2 parents eeeaa4b + 8834920 commit 2b5eb46
Show file tree
Hide file tree
Showing 8 changed files with 1,202 additions and 85 deletions.
44 changes: 44 additions & 0 deletions .github/workflows/wordpress-coding-standards.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
name: WordPress Coding Standards

on:
push:
branches:
- develop
- main
pull_request:
branches:
- develop
- main

jobs:
run:
runs-on: ubuntu-latest
name: PHPCS
strategy:
matrix:
php: [ 8.1 ]

steps:
- name: Cancel previous runs of this workflow (pull requests only)
if: ${{ github.event_name == 'pull_request' }}
uses: styfle/[email protected]
with:
access_token: ${{ github.token }}

- name: Checkout
uses: actions/checkout@v3

- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
tools: composer:v2
coverage: none

- name: Install dependencies
uses: ramsey/composer-install@v2
with:
composer-options: "--no-progress"

- name: Run PHPCS
run: composer run-script check-cs
50 changes: 36 additions & 14 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,16 +1,38 @@
{
"name": "josephfusco/wpgraphql-ide",
"description": "A next-gen query editor for WPGraphQL.",
"type": "wordpress-plugin",
"license": "GPL-3.0-or-later",
"authors": [
{
"name": "Joseph Fusco",
"homepage": "https://github.com/josephfusco",
"role": "Developer"
}
],
"require": {
"php": "^8.0"
}
"name": "josephfusco/wpgraphql-ide",
"description": "A next-gen query editor for WPGraphQL.",
"type": "wordpress-plugin",
"license": "GPL-3.0-or-later",
"authors": [
{
"name": "Joseph Fusco",
"homepage": "https://github.com/josephfusco",
"role": "Developer"
}
],
"require": {
"php": "^8.0"
},
"require-dev": {
"automattic/vipwpcs": "^3.0",
"slevomat/coding-standard": "^8.9",
"phpcompatibility/phpcompatibility-wp": "^2.1",
"phpcompatibility/php-compatibility": "dev-develop as 9.9.9"
},
"scripts": {
"phpcs-i": [
"php ./vendor/bin/phpcs -i"
],
"check-cs": [
"php ./vendor/bin/phpcs"
],
"fix-cs": [
"php ./vendor/bin/phpcbf"
]
},
"config": {
"allow-plugins": {
"dealerdirect/phpcodesniffer-composer-installer": true
}
}
}
Loading

0 comments on commit 2b5eb46

Please sign in to comment.