-
-
Notifications
You must be signed in to change notification settings - Fork 2
43 lines (36 loc) · 1.19 KB
/
test.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
name: Tests
on:
push:
branches:
- master
pull_request_target:
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
php_version:
- '8.1'
- '8.2'
- '8.3'
name: PHP ${{ matrix.php_version }}
steps:
- uses: actions/checkout@v2
- name: Setup PHP with pecl extension
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php_version }}
tools: pecl
extensions: :opcache, mongodb
- run: composer remove --no-update --dev roave/security-advisories solido/php-coding-standards
- run: composer update --with-all-dependencies
- run: vendor/bin/phpunit
if: matrix.php_version != '8.1'
- run: vendor/bin/phpunit --coverage-clover coverage.xml
if: matrix.php_version == '8.1'
env:
XDEBUG_MODE: coverage
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v1
with:
file: ./coverage.xml