.github/workflows/coding-standard.yml
name: Coding Standard
on:
push:
pull_request:
jobs:
coding-standard:
name: Coding Standard
runs-on: ubuntu-latest
env:
COMPOSER_AUTH: '{"github-oauth": {"github.com": "${{ secrets.GITHUB_TOKEN }}"}}'
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Install PHP
uses: shivammathur/setup-php@v2
with:
php-version: 8.2
coverage: none
- name: Install dependencies
uses: "ramsey/composer-install@v2"
with:
composer-options: "--ignore-platform-reqs --prefer-dist --prefer-stable"
- name: Check style
run: composer cs