This repository has been archived by the owner on Aug 27, 2024. It is now read-only.
Merge pull request #5 from Saritasa/feature/laravel-11-support #8
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
name: PHP Codesniffer | |
on: [push, pull_request] | |
jobs: | |
phpcs: | |
name: PHP Codesniffer | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: Setup PHP | |
uses: shivammathur/setup-php@v2 | |
with: | |
php-version: '8.1' | |
- name: Validate composer.json and composer.lock | |
run: composer validate | |
- name: Install dependencies | |
run: composer install --prefer-dist --no-progress --no-interaction | |
- name: Run code sniffer | |
run: vendor/bin/phpcs |