-
Notifications
You must be signed in to change notification settings - Fork 8
34 lines (32 loc) · 865 Bytes
/
php.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
name: PHP
on:
push:
branches: [ "master", "develop" ]
pull_request:
branches: [ "master", "develop" ]
jobs:
tests:
runs-on: ubuntu-latest
steps:
- uses: shivammathur/setup-php@v2
with:
php-version: '8.2'
- uses: actions/checkout@v4
- name: Cache Composer dependencies
uses: actions/cache@v4
with:
path: /tmp/composer-cache
key: ${{ runner.os }}-${{ hashFiles('**/composer.lock') }}
- uses: php-actions/composer@v6
with:
args: --no-scripts
php_version: "8.3"
php_extensions: dom libxml
- name: Run Rector
run: ./vendor/bin/rector --dry-run
- name: Run ECS
run: ./vendor/bin/ecs
- name: Run PHPStan
run: ./vendor/bin/phpstan
- name: Run PHPUnit
run: ./vendor/bin/phpunit