Add phpcs check with PSR12 #1
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: Valet+ tests | ||
on: | ||
push: | ||
branches: [ 3.x ] | ||
pull_request: | ||
branches: [ 3.x ] | ||
jobs: | ||
test: | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v4 | ||
- name: '[INSTALL] Install PHP 8.0' | ||
uses: shivammathur/setup-php@v2 | ||
with: | ||
php-version: '8.0' | ||
extensions: dom, curl, libxml, mbstring, zip, fileinfo | ||
ini-values: error_reporting=E_ALL, max_execution_time=-1, memory_limit=512M | ||
tools: composer:v2 | ||
coverage: none | ||
- name: '[INSTALL] Composer install' | ||
run: composer install --no-interaction --prefer-dist | ||
- name: '[TEST] Phpcs' | ||
run: ./vendor/bin/phpcs |