-
Notifications
You must be signed in to change notification settings - Fork 2
48 lines (38 loc) · 1.2 KB
/
Copy pathcheck.yml
File metadata and controls
48 lines (38 loc) · 1.2 KB
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
name: Code Quality Checks
on:
push:
branches: [ main, develop ]
pull_request:
branches: [ main ]
jobs:
php:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v6
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: "8.5"
extensions: mbstring, xml, ctype, iconv, intl, dom, filter, json, zip, tidy
tools: composer:v2
- name: Cache Composer packages
id: composer-cache
uses: actions/cache@v6
with:
path: vendor
key: ${{ runner.os }}-php-${{ hashFiles('**/composer.lock') }}
restore-keys: |
${{ runner.os }}-php-
- name: Install dependencies
run: composer install --prefer-dist --no-progress
- name: Run Rector (dry run)
run: vendor/bin/rector process --dry-run
- name: Run PHP CS Fixer (dry run)
run: vendor/bin/php-cs-fixer fix --dry-run --diff --verbose
- name: Run PHPStan
run: vendor/bin/phpstan analyse --memory-limit=1G
- name: Check security vulnerabilities
run: composer audit
- name: Run PHPUnit Tests
run: vendor/bin/phpunit