-
-
Notifications
You must be signed in to change notification settings - Fork 5
52 lines (42 loc) · 1.23 KB
/
php_linter.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
name: Code Quality
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
laravel-lint:
runs-on: ubuntu-latest
strategy:
matrix:
php: [8.2]
steps:
- name: Checkout Repository
uses: actions/checkout@v2
- name: Set up PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
extensions: mbstring, zip
- name: Install Composer Dependencies
run: |
composer install --no-interaction --prefer-dist
working-directory: ./src/backend
- name: Run PHP-CS-Fixer
run: composer php-cs-fixer-check
working-directory: ./src/backend
- name: Run PHPStan/Larastan
run: composer larastan
working-directory: ./src/backend
- name: Run PHPStan/Larastan (next level)
run: composer larastan-next
working-directory: ./src/backend
continue-on-error: true
# Temporarily disabled, until we can run it with php-parser version 5
# https://github.com/vimeo/psalm/issues/11112
# - name: Run Psalm
# run: composer psalm-check
# working-directory: ./src/backend
# continue-on-error: true