-
Notifications
You must be signed in to change notification settings - Fork 3
41 lines (36 loc) · 1.28 KB
/
tests.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
name: Tests
on:
push:
branches:
- 'master'
- '[0-9].[0-9]+'
pull_request: ~
jobs:
tests:
name: ${{ matrix.php }} ${{ matrix.coverage }} ${{ matrix.kernel }}
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
include:
- php: '8.1'
phpunit: 'phpunit.xml'
coverage: 'unit'
- php: '8.1'
phpunit: 'phpunit-integration-legacy.xml'
coverage: 'integration'
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 2
- uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
coverage: xdebug
- run: composer require --no-update ezsystems/ezpublish-kernel="${{ matrix.kernel }}"
if: matrix.kernel
- run: composer --version
- run: composer validate --strict
- run: composer update --prefer-dist
- run: vendor/bin/phpunit -c ${{ matrix.phpunit }} --colors=always --coverage-clover=coverage.xml
- run: bash <(curl -s https://codecov.io/bash) -F ${{ matrix.coverage }}