-
Notifications
You must be signed in to change notification settings - Fork 20
53 lines (40 loc) · 1.18 KB
/
phpstan.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
44
45
46
47
48
49
50
51
52
53
name: PHPStan / Code sniffer
on:
push:
branches:
- '*'
pull_request:
branches:
- '*'
schedule:
- cron: '0 0 * * 0'
jobs:
build:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
php-version: ['8.1']
name: PHP ${{ matrix.php-version }}
steps:
- uses: actions/checkout@v2
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-version }}
extensions: mbstring, intl, apcu
ini-values: apc.enable_cli = 1
- name: Update composer
run: composer self-update
- name: Validate composer.json
run: composer validate
- name: Install dependencies
run: composer update --prefer-dist --no-progress --no-suggest --prefer-stable
- name: Bake factories to perform analysis in the following steps
run : vendor/bin/phpunit tests/TestCase/Command/BakeFixtureFactoryCommandTest.php
- name: Run phpstan
run: composer stan
- name: Run phpcs
run: composer cs-check
- name: Run psalm
run: composer psalm