36 lines
1.2 KiB
YAML
36 lines
1.2 KiB
YAML
name: CI
|
|
on:
|
|
pull_request: null
|
|
push:
|
|
branches:
|
|
- master
|
|
jobs:
|
|
tests:
|
|
runs-on: ubuntu-latest
|
|
strategy:
|
|
matrix:
|
|
php: ['7.4']
|
|
|
|
name: Coverage - PHP ${{ matrix.php }}
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- uses: shivammathur/setup-php@v1
|
|
with:
|
|
php-version: ${{ matrix.php }}
|
|
coverage: pcov
|
|
extensions: mbstring, xml, ctype, iconv, intl, pdo_sqlite
|
|
- run: |
|
|
composer install --no-progress
|
|
composer require zendframework/zend-ldap
|
|
- name: Setup problem matchers for PHPUnit
|
|
run: echo "::add-matcher::${{ runner.tool_cache }}/phpunit.json"
|
|
- name: Run tests
|
|
run: vendor/bin/phpunit tests/ --coverage-clover=coverage.xml
|
|
env:
|
|
TEST_WITH_BUNDLES: 1
|
|
- name: Upload code coverage
|
|
uses: codecov/codecov-action@v1
|
|
with:
|
|
token: ${{ secrets.CODECOV_TOKEN }}
|
|
file: ./coverage.xml
|