-
Notifications
You must be signed in to change notification settings - Fork 1
48 lines (47 loc) · 1.25 KB
/
push.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
48
name: CI
on: [push]
jobs:
unit-tests:
runs-on: ubuntu-latest
strategy:
matrix:
php-version: ['8.3', '8.2', '8.1']
steps:
- uses: actions/checkout@v4
- name: Install PHP
uses: shivammathur/setup-php@master
with:
php-version: ${{ matrix.php-version }}
- name: Install dependencies
run: composer install
- name: Run tests
run: |
XDEBUG_MODE=coverage ./vendor/bin/phpunit --coverage-clover coverage.xml
- uses: codecov/codecov-action@v4
if: matrix.php-version == '8.3'
with:
token: ${{ secrets.CODECOV_TOKEN }}
phpstan:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install PHP
uses: shivammathur/setup-php@master
with:
php-version: '8.3'
- name: Install dependencies
run: composer install
- name: PHPStan
run: ./vendor/bin/phpstan analyse
php-cs-fixer:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install PHP
uses: shivammathur/setup-php@master
with:
php-version: '8.3'
- name: Install dependencies
run: composer install
- name: PHP-CS-Fixer
run: ./vendor/bin/php-cs-fixer fix