Skip to content

Configure CI build via GitHub workflow, setup code style checks for C… #2

Configure CI build via GitHub workflow, setup code style checks for C…

Configure CI build via GitHub workflow, setup code style checks for C… #2

Workflow file for this run

name: Check code style
on: push
jobs:
code-style:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: 8.2
- name: Install Composer dependencies
run: composer install --prefer-dist --no-interaction
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: 20
- name: Install npm dependencies
run: npm clean-install
- name: Check code style for PHP
run: composer cs
- name: Check code style for CSS and JavaScript
run: npm run cs