Skip to content

Feature/mutli instance #34

Feature/mutli instance

Feature/mutli instance #34

Workflow file for this run

name: Lint
on:
workflow_dispatch:
push:
branches: [master]
pull_request:
branches: [master, develop]
jobs:
csscomb:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
- run: |
npm init -y
npm install csscomb --global
csscomb ./**
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: "8.2"
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 install
composer phpcs