-
-
Notifications
You must be signed in to change notification settings - Fork 44
32 lines (27 loc) · 889 Bytes
/
code-style.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
name: Code style check
on:
push:
branches:
- master
pull_request:
jobs:
phpcs:
name: Code style check
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
# https://github.com/shivammathur/setup-php
- name: Install PHP
uses: shivammathur/setup-php@v2
with:
php-version: 8.0
tools: composer
# Specific versions of extensions available on PECL can be set up by suffixing the extension's name with the version.
# https://github.com/shivammathur/setup-php?tab=readme-ov-file#heavy_plus_sign-php-extension-support
extensions: apcu, redis-5.3.7, memcached, mongodb
env:
fail-fast: true
- name: Update dependencies with composer
run: composer update
- name: Run php-cs-fixer
run: ./vendor/bin/php-cs-fixer fix --dry-run --diff .