-
Notifications
You must be signed in to change notification settings - Fork 0
43 lines (35 loc) · 1.03 KB
/
code-check.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
42
43
name: Code Check
on:
push:
branches:
- main
- develop
pull_request:
branches:
- main
jobs:
test:
name: PHP ${{ matrix.php-versions }}
runs-on: ${{ matrix.operating-system }}
strategy:
matrix:
operating-system: [ubuntu-latest]
php-versions: ["8.1", "8.2"]
env:
DEFAULT_COMPOSER_FLAGS: "--no-interaction --no-ansi --no-progress --no-suggest"
steps:
- uses: actions/checkout@latest
- name: Setup PHP Action
uses: shivammathur/setup-php@2.25.0
with:
php-version: ${{ matrix.php-versions }}
extensions: mbstring, intl, gd, imagick, zip, dom, pdo_mysql, pdo_pgsql, fileinfo
ini-values: post_max_size=256M
- name: Validate composer.json and composer.lock
run: composer validate
- name: Install Composer dependencies
run: composer install --prefer-dist --no-progress --no-suggest
- name: PHPStan
run: composer run phpstan
- name: ECS
run: composer run check-cs