-
Notifications
You must be signed in to change notification settings - Fork 178
31 lines (31 loc) · 902 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
name: CI
on:
schedule:
- cron: '0 0 * * *'
push:
pull_request:
jobs:
tests:
name: Tests
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest]
php: ['8.0', '8.1', '8.2', '8.3']
doctrine: ['2.14']
steps:
- uses: actions/checkout@v3
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
ini-values: error_reporting=E_ALL
tools: phpunit, git
coverage: xdebug
- name: Install dependencies for doctrine/orm ${{ matrix.doctrine }}
run: composer require --no-progress --no-scripts --no-plugins -v -W doctrine/orm "~${{ matrix.doctrine }}.0"
- name: PHPUnit
run: vendor/bin/phpunit --coverage-clover=coverage.xml --coverage-text
- uses: codecov/codecov-action@v3
with:
file: ./coverage.xml