|
1 | 1 | name: CI |
2 | | -on: [push, pull_request] |
| 2 | +on: |
| 3 | + schedule: |
| 4 | + - cron: '0 0 * * *' |
| 5 | + push: |
| 6 | + pull_request: |
3 | 7 | jobs: |
4 | 8 | tests: |
5 | 9 | runs-on: 'ubuntu-latest' |
6 | | - name: PHP ${{ matrix.php }} - doctrine/orm ${{ matrix.orm }} |
| 10 | + name: PHP ${{ matrix.php }} - Doctrine ${{ matrix.doctrine }} |
7 | 11 | strategy: |
8 | 12 | matrix: |
9 | | - php: ['7.2', '7.3', '7.4', '8.0', '8.1'] |
10 | | - orm: ['2.6', '2.7', '2.8', '2.9', '2.10', '2.11'] |
11 | | - exclude: |
12 | | - - php: '8.0' |
13 | | - orm: '2.6.0' |
14 | | - - php: '8.0' |
15 | | - orm: '2.7.0' |
16 | | - - php: '8.1' |
17 | | - orm: '2.6.0' |
18 | | - - php: '8.1' |
19 | | - orm: '2.7.0' |
| 13 | + php: ['8.0', '8.1', '8.2'] |
| 14 | + doctrine: ['2.11', '2.12', '2.13', '2.14'] |
20 | 15 | steps: |
21 | | - - uses: actions/checkout@v2 |
| 16 | + - uses: actions/checkout@v3 |
22 | 17 | - name: Setup PHP |
23 | 18 | uses: shivammathur/setup-php@v2 |
24 | 19 | with: |
25 | 20 | php-version: ${{ matrix.php }} |
| 21 | + ini-values: error_reporting=E_ALL |
26 | 22 | tools: phpunit, git |
27 | 23 |
|
28 | | - - name: Get composer cache directory |
29 | | - id: composer-cache |
30 | | - run: echo "::set-output name=dir::$(composer config cache-files-dir)" |
31 | | - |
32 | | - - name: Cache composer dependencies |
33 | | - uses: actions/cache@v1 |
34 | | - with: |
35 | | - path: ${{ steps.composer-cache.outputs.dir }} |
36 | | - key: "php-${{ matrix.php }}-${{matrix.orm}}-composer-locked-${{ hashFiles('composer.lock') }}" |
37 | | - restore-keys: "php-${{ matrix.php }}-${{matrix.orm}}-composer-locked-" |
38 | | - |
39 | 24 | - name: Install Composer dependencies |
40 | 25 | run: rm -f composer.lock |
41 | 26 |
|
42 | | - - name: Install doctrine/orm ${{ matrix.orm }} |
43 | | - run: composer require --no-progress --no-scripts --no-plugins doctrine/orm "~${{ matrix.orm }}" -v |
| 27 | + - name: Install doctrine/orm ${{ matrix.doctrine }} |
| 28 | + run: composer require --no-progress --no-scripts --no-plugins doctrine/orm "~${{ matrix.doctrine }}.0" -v |
44 | 29 |
|
45 | 30 | - name: Update dependencies |
46 | 31 | run: composer update --no-interaction |
|
0 commit comments