Skip to content

Commit eeb08ff

Browse files
committed
Extract lint
1 parent 1dfb2e5 commit eeb08ff

File tree

2 files changed

+41
-8
lines changed

2 files changed

+41
-8
lines changed

.github/workflows/phplint.yml

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
on: [push]
2+
3+
name: "CI PHP"
4+
5+
jobs:
6+
test:
7+
8+
runs-on: ubuntu-latest
9+
10+
name: PHP lint
11+
12+
steps:
13+
- name: Cancel Previous Runs
14+
uses: styfle/[email protected]
15+
with:
16+
access_token: ${{ github.token }}
17+
18+
- name: Checkout
19+
uses: actions/checkout@v2
20+
21+
- name: Install PHP with extensions
22+
uses: shivammathur/setup-php@v2
23+
with:
24+
coverage: pcov
25+
extensions: intl, gd, zip, pdo, sqlite, pdo_sqlite, dom, curl, libxml, mbstring, fileinfo, exif, iconv
26+
ini-values: memory_limit=-1,disable_functions="",pcov.exclude="~(vendor|tests|node_modules)~",pcov.directory="./"
27+
php-version: 8.2
28+
tools: composer:v2
29+
30+
- name: Composer Install
31+
run: |
32+
composer require --no-interaction --no-update
33+
composer install
34+
35+
- name: PHPLint
36+
run: |
37+
./vendor/bin/phpcs
38+
39+
- name: PHPStan
40+
run: |
41+
./vendor/bin/phpstan analyse

.github/workflows/phptest.yml

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -52,14 +52,6 @@ jobs:
5252
run: |
5353
./vendor/bin/phpunit --coverage-clover=coverage.xml
5454
55-
- name: PHPLint
56-
run: |
57-
./vendor/bin/phpcs
58-
59-
- name: PHPStan
60-
run: |
61-
./vendor/bin/phpstan analyse
62-
6355
- name: Upload to codecov
6456
uses: codecov/codecov-action@v3
6557
with:

0 commit comments

Comments
 (0)