forked from shopware/shopware
-
Notifications
You must be signed in to change notification settings - Fork 0
43 lines (37 loc) · 1.01 KB
/
01-php-lint.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: PHP Lint
on:
push:
branches:
- trunk
pull_request:
paths:
- composer.json
- 'changelog/**/*.md'
- 'src/**/snippet/**/*.json'
- '**.php'
jobs:
build:
runs-on: ubuntu-latest
name: "PHP Analyse"
steps:
- name: Clone platform
uses: actions/checkout@v2
with:
fetch-depth: '0'
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: '8.1'
- name: Install Shopware
run: |
composer install
- name: Check Code
run: |
composer run ecs -- --no-progress-bar
composer run phpstan -- --error-format=gitlab --no-progress | tee phpstan-report.json
composer run lint:changelog
composer run lint:snippets
# TODO: Re-Enable BC-Check after 6.5 RC release
# git remote add bc-checker-upstream https://github.com/shopware/platform.git
# git fetch bc-checker-upstream
# composer run bc-check