Skip to content

Lint

Lint #21

Workflow file for this run

name: Lint
on:
workflow_dispatch:
push:
branches: [master]
pull_request:
branches: [master, develop]
jobs:
editorconfig:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: editorconfig-checker/action-editorconfig-checker@main
- run: editorconfig-checker
csscomb:
runs-on: ubuntu-latest
needs: editorconfig
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
- run: |
npm init -y
npm install csscomb --global
csscomb css
phpcs:
runs-on: ubuntu-latest
needs: csscomb
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: '7.4'
coverage: none
tools: composer, cs2pr
- name: Get Composer cache directory
id: composer-cache
run: |
echo "dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT
- name: Setup cache
uses: actions/cache@v4
with:
path: ${{ steps.composer-cache.outputs.dir }}
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}
restore-keys: ${{ runner.os }}-composer-
- name: Run phpcs
run: |
composer self-update --1
composer install
composer phpcs