Skip to content

Add rate limit (#128) #54

Add rate limit (#128)

Add rate limit (#128) #54

Workflow file for this run

name: style-fix
on:
push:
branches: [master]
jobs:
style:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: '8.1'
extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite, bcmath, soap, intl, exif
coverage: xdebug
- name: Cache Composer packages
id: composer-cache
uses: actions/cache@v4
with:
path: vendor
key: ${{ runner.os }}-php-8.1-${{ hashFiles('**/composer.lock') }}
restore-keys: |
${{ runner.os }}-php--8.1
- name: Install dependencies
if: steps.composer-cache.outputs.cache-hit != 'true'
run: |
composer install
composer dump
- name: Fix styles
run: vendor/bin/php-cs-fixer fix
- uses: EndBug/add-and-commit@v9
- name: Run style
run: vendor/bin/php-cs-fixer fix --dry-run --diff --format junit