-
Notifications
You must be signed in to change notification settings - Fork 0
26 lines (26 loc) · 894 Bytes
/
phpci.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
name: PHP setup
on: [push]
jobs:
run:
runs-on: ubuntu-latest
steps:
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: '8.3'
extensions: mbstring, intl
ini-values: post_max_size=256M, max_execution_time=180
coverage: xdebug
tools: php-cs-fixer, phpunit, phpstan, psalm, phpcs, cs2pr
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
#- name: Setup problem matchers for php
# run: echo "::add-matcher::${{ runner.tool_cache}}/php.json"
#- name: Setup problem matchers for PHPUnit
# run: echo "::add-matcher::${{ runner.tool_cache}}/phpunit.json"
#- name: Setup problem matchers for PHPStan
# run: phpstan analyse src
#- name: Setup problem matchers for Psalm
# run: psalm --output-format=github
- name: Run PHPCS
run: phpcs -q --report=checkstyle cs2pr