-
Notifications
You must be signed in to change notification settings - Fork 141
51 lines (40 loc) · 1.07 KB
/
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
name: CI
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build:
runs-on: ubuntu-20.04
strategy:
matrix:
php: ['8.2']
report-coverage: [false]
include:
- php: '7.4'
report-coverage: true
steps:
- uses: actions/checkout@v2
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
extensions: mbstring, curl, soap, :fileinfo
- name: Validate composer.json
run: composer validate
- name: Install dependencies
run: composer install --prefer-dist --no-progress
- name: Run PHPStan
run: composer run-script lint:ci
- name: Run PSalm
if: ${{ matrix.report-coverage }}
run: vendor/bin/psalm --shepherd
- name: Unit Tests
run: vendor/bin/phpunit --exclude-group manual --coverage-clover clover.xml
- uses: codecov/codecov-action@v1
if: ${{ matrix.report-coverage }}
with:
file: ./clover.xml
flags: unittests
name: codecov-greenter