Skip to content

Add MIT license, CI workflows, and code style enforcement #1

Add MIT license, CI workflows, and code style enforcement

Add MIT license, CI workflows, and code style enforcement #1

Workflow file for this run

name: Code Style
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
code-style:
runs-on: ubuntu-latest
name: PHP CS Fixer
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: '8.3'
extensions: json, mbstring
coverage: none
- name: Install dependencies
run: composer install --no-interaction --prefer-dist
- name: Run PHP CS Fixer
run: vendor/bin/php-cs-fixer fix --dry-run --diff