-
Notifications
You must be signed in to change notification settings - Fork 5
37 lines (32 loc) · 962 Bytes
/
ci.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
name: CI
on: [push, pull_request]
jobs:
run:
runs-on: ubuntu-latest
strategy:
matrix:
php: [7.3, 7.4, 8.0, 8.1]
name: PHP ${{ matrix.php }}
steps:
- uses: actions/checkout@v2
- uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
coverage: xdebug
- name: "Validate composer.json"
run: composer validate
- name: "Install dependencies"
run: composer install --prefer-dist --no-interaction
- name: "Check coding standards"
run: vendor/bin/phpcs
- name: "Analyze code with PHPStan"
run: vendor/bin/phpstan
- name: "Run test suite"
run: vendor/bin/phpunit --coverage-clover=coverage.xml
- name: "Upload coverage to Codecov"
uses: codecov/codecov-action@v1
with:
file: ./coverage.xml
flags: tests
name: codecov-umbrella
fail_ci_if_error: true