-
Notifications
You must be signed in to change notification settings - Fork 0
38 lines (29 loc) · 809 Bytes
/
php_ci.yml
File metadata and controls
38 lines (29 loc) · 809 Bytes
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
name: PHP CI
on:
push:
branches: [ 'main' ]
pull_request:
branches: [ '*' ]
jobs:
validate:
name: Validate codebase
runs-on: ubuntu-latest
steps:
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: 8.3
- name: Checkout code
uses: actions/checkout@v4
- name: Validate composer.json
run: composer validate --strict
- name: Audit dependencies
run: composer audit --no-dev
- name: Install dependencies
run: composer install --no-progress
- name: Run PHP CS Fixer
run: php vendor/bin/php-cs-fixer check --config=.php-cs-fixer.php
- name: Run PHPStan
run: php vendor/bin/phpstan
- name: Run PHPUnit
run: php vendor/bin/phpunit tests