style improvements #78
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# static code analyse with PHP CodeSniffer | |
name: PHP-CodeSniffer | |
on: | |
push: | |
branches: | |
- main | |
- dev | |
jobs: | |
phpcodesniffer: | |
name: PHP CodeSniffer | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v2 | |
# setup php interpreter | |
- name: Setup PHP | |
uses: shivammathur/setup-php@v2 | |
with: | |
php-version: 8.4 | |
extensions: intl, pdo_mysql, gd | |
# install backend dependencies with composer | |
- name: Install backend dependencies | |
run: composer install --no-interaction --no-progress | |
# run code analyse with codesniffer | |
- name: Run PHP-CodeSniffer | |
run: vendor/bin/phpcs |