|
7 | 7 |
|
8 | 8 | # Run action at midnight to test against any updated dependencies
|
9 | 9 | schedule:
|
10 |
| - - cron: '0 0 * * *' |
| 10 | + - cron: '0 0 * * *' |
11 | 11 |
|
12 | 12 | jobs:
|
13 |
| - phpunit: |
14 |
| - strategy: |
15 |
| - matrix: |
16 |
| - php: [8.0, 7.4, 7.3, 7.2] |
17 |
| - laravel: [8.*, 7.*, 6.*] |
18 |
| - os: [ubuntu-latest, windows-latest] |
19 |
| - |
20 |
| - # Unsupported combinations |
21 |
| - exclude: |
22 |
| - - laravel: 8.* |
23 |
| - php: 7.2 |
24 |
| - |
25 |
| - # Continue running through matrix even if one combination fails |
26 |
| - fail-fast: false |
27 |
| - |
28 |
| - runs-on: ${{ matrix.os }} |
29 |
| - |
30 |
| - name: P${{ matrix.php }} - L${{ matrix.laravel }} - ${{ matrix.os }} |
31 |
| - |
32 |
| - steps: |
33 |
| - - name: Check out code |
34 |
| - uses: actions/checkout@v2 |
35 |
| - |
36 |
| - - name: Setup PHP |
37 |
| - uses: shivammathur/setup-php@v2 |
38 |
| - with: |
39 |
| - php-version: ${{ matrix.php }} |
40 |
| - coverage: xdebug |
41 |
| - |
42 |
| - - name: Install dependencies |
43 |
| - run: | |
44 |
| - # Install Laravel version per matrix |
45 |
| - composer require --dev "laravel/framework:${{ matrix.laravel }}" --no-interaction |
46 |
| -
|
47 |
| - composer install --no-interaction |
48 |
| -
|
49 |
| - - name: Execute PHPUnit tests |
50 |
| - run: vendor/bin/phpunit --coverage-clover build/logs/clover.xml |
51 |
| - |
52 |
| - - name: Report coverage to Codecov |
53 |
| - uses: codecov/codecov-action@v1 |
54 |
| - with: |
55 |
| - file: build/logs/clover.xml |
| 13 | + phpunit: |
| 14 | + strategy: |
| 15 | + matrix: |
| 16 | + php: [ 8.0, 7.4, 7.3, 7.2 ] |
| 17 | + laravel: [ 8.*, 7.*, 6.* ] |
| 18 | + os: [ ubuntu-latest, windows-latest ] |
| 19 | + |
| 20 | + # Unsupported combinations |
| 21 | + exclude: |
| 22 | + - laravel: 8.* |
| 23 | + php: 7.2 |
| 24 | + |
| 25 | + # Continue running through matrix even if one combination fails |
| 26 | + fail-fast: false |
| 27 | + |
| 28 | + runs-on: ${{ matrix.os }} |
| 29 | + |
| 30 | + name: P${{ matrix.php }} - L${{ matrix.laravel }} - ${{ matrix.os }} |
| 31 | + |
| 32 | + steps: |
| 33 | + - name: Check out code |
| 34 | + uses: actions/checkout@v2 |
| 35 | + |
| 36 | + - name: Setup PHP |
| 37 | + uses: shivammathur/setup-php@v2 |
| 38 | + with: |
| 39 | + php-version: ${{ matrix.php }} |
| 40 | + coverage: xdebug |
| 41 | + extensions: fileinfo |
| 42 | + |
| 43 | + - name: Install dependencies |
| 44 | + run: | |
| 45 | + # Install Laravel version per matrix |
| 46 | + composer require --dev "laravel/framework:${{ matrix.laravel }}" --no-interaction |
| 47 | +
|
| 48 | + composer install --no-interaction |
| 49 | +
|
| 50 | + - name: Execute PHPUnit tests |
| 51 | + run: vendor/bin/phpunit --coverage-clover build/logs/clover.xml |
| 52 | + |
| 53 | + - name: Report coverage to Codecov |
| 54 | + uses: codecov/codecov-action@v1 |
| 55 | + with: |
| 56 | + file: build/logs/clover.xml |
0 commit comments