Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update dependencies and GitHub action #52

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 20 additions & 11 deletions .github/workflows/code-style.yml
Original file line number Diff line number Diff line change
@@ -1,24 +1,33 @@
name: Code style check
name: Check code style

on: push

jobs:
quality:
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: 8.3

- name: Install Composer dependencies
run: composer install --prefer-dist --no-interaction

- name: Setup Node
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: '18'
- name: Install
run: |
composer install --no-interaction
npm ci
- name: Code style checks for PHP
node-version: 22

- name: Install npm dependencies
run: npm clean-install

- name: Check code style for PHP
run: composer cs
- name: Code style checks for CSS and JavaScript

- name: Check code style for CSS and JavaScript
run: npm run cs
6 changes: 3 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,12 @@
"npm-asset/chartist-plugin-tooltips-updated": "^1.0.0"
},
"require-dev": {
"dealerdirect/phpcodesniffer-composer-installer": "^0.7",
"dealerdirect/phpcodesniffer-composer-installer": "^1.0",
"matthiasmullie/minify": "^1.3",
"phpcompatibility/php-compatibility": "^9.3",
"phpcompatibility/phpcompatibility-wp": "^2.1",
"slowprog/composer-copy-file": "^0.3",
"squizlabs/php_codesniffer": "^3.7",
"wp-coding-standards/wpcs": "^2.3"
"wp-coding-standards/wpcs": "^3.1"
},
"repositories": [
{
Expand Down
Loading