-
Notifications
You must be signed in to change notification settings - Fork 106
41 lines (31 loc) · 1000 Bytes
/
phplint.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
33
34
35
36
37
38
39
40
41
on: [push]
name: "CI PHP"
jobs:
test:
runs-on: ubuntu-latest
name: PHP lint
steps:
- name: Cancel Previous Runs
uses: styfle/[email protected]
with:
access_token: ${{ github.token }}
- name: Checkout
uses: actions/checkout@v2
- name: Install PHP with extensions
uses: shivammathur/setup-php@v2
with:
coverage: pcov
extensions: intl, gd, zip, pdo, sqlite, pdo_sqlite, dom, curl, libxml, mbstring, fileinfo, exif, iconv
ini-values: memory_limit=-1,disable_functions="",pcov.exclude="~(vendor|tests|node_modules)~",pcov.directory="./"
php-version: 8.2
tools: composer:v2
- name: Composer Install
run: |
composer require --no-interaction --no-update
composer install
- name: PHPLint
run: |
./vendor/bin/phpcs
- name: PHPStan
run: |
./vendor/bin/phpstan analyse