.github/workflows/ci-code-style.yml
name: Code Style
on:
- push
- fork
- pull_request
jobs:
code-style:
runs-on: ubuntu-latest
name: "Check code style"
strategy:
fail-fast: false
steps:
- uses: actions/checkout@v2
- name: Cache Composer dependencies
uses: actions/cache@v2
with:
path: /tmp/composer-cache
key: ${{ runner.os }}-${{ hashFiles('**/composer.lock') }}
- uses: shivammathur/setup-php@v2
with:
php-version: '8.1'
tools: composer:v2
- run: composer install --dev
shell: bash
- run: composer cs:list
shell: bash