forked from worksome/graphlint
-
Notifications
You must be signed in to change notification settings - Fork 0
47 lines (36 loc) · 963 Bytes
/
code-analysis.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
name: Code Analysis
on:
push:
jobs:
code_analysis_composer:
timeout-minutes: 30
name: '${{ matrix.actions.name }} on PHP ${{ matrix.php }}'
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
php: [ '8.2', '8.3' ]
actions:
- name: ECS
run: "composer ecs"
- name: PHPStan
run: "composer phpstan"
- name: Rector
run: "composer rector"
- name: Composer validate
run: "composer validate"
env:
APP_NAME: "Worksome CI"
APP_ENV: testing
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
coverage: none
php-version: ${{ matrix.php }}
tools: cs2pr
- name: Install Composer dependencies
uses: ramsey/composer-install@v3
- run: ${{ matrix.actions.run }}