|
1 | 1 | name: Tests
|
2 | 2 |
|
3 |
| -on: [push, pull_request] |
| 3 | +on: |
| 4 | + push: |
| 5 | + paths-ignore: |
| 6 | + - '**.md' |
| 7 | + pull_request: |
| 8 | + paths-ignore: |
| 9 | + - '**.md' |
4 | 10 |
|
5 | 11 | jobs:
|
6 |
| - test: |
7 |
| - runs-on: ${{ matrix.os }} |
8 |
| - strategy: |
9 |
| - fail-fast: true |
10 |
| - matrix: |
11 |
| - os: [ubuntu-latest, windows-latest] |
12 |
| - php: [7.4] |
13 |
| - laravel: [7.*] |
14 |
| - dependency-version: [prefer-lowest, prefer-stable] |
15 |
| - include: |
16 |
| - - laravel: 7.* |
17 |
| - testbench: 5.* |
18 |
| - |
19 |
| - name: P${{ matrix.php }} - L${{ matrix.laravel }} - ${{ matrix.dependency-version }} - ${{ matrix.os }} |
20 |
| - |
21 |
| - steps: |
22 |
| - - name: Checkout code |
23 |
| - uses: actions/checkout@v2 |
24 |
| - |
25 |
| - - name: Cache dependencies |
26 |
| - uses: actions/cache@v1 |
27 |
| - with: |
28 |
| - path: ~/.composer/cache/files |
29 |
| - key: dependencies-laravel-${{ matrix.laravel }}-php-${{ matrix.php }}-composer-${{ hashFiles('composer.json') }} |
30 |
| - |
31 |
| - - name: Setup PHP |
32 |
| - uses: shivammathur/setup-php@v1 |
33 |
| - with: |
34 |
| - php-version: ${{ matrix.php }} |
35 |
| - extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite, bcmath, soap, intl, gd, exif, iconv, imagick |
36 |
| - coverage: none |
37 |
| - |
38 |
| - - name: Install dependencies |
39 |
| - run: | |
40 |
| - composer require "laravel/framework:${{ matrix.laravel }}" "orchestra/testbench:${{ matrix.testbench }}" --no-interaction --no-update |
41 |
| - composer update --${{ matrix.dependency-version }} --prefer-dist --no-interaction --no-suggest |
42 |
| -
|
43 |
| - - name: Execute tests |
44 |
| - run: vendor/bin/phpunit |
| 12 | + test: |
| 13 | + runs-on: ${{ matrix.os }} |
| 14 | + strategy: |
| 15 | + fail-fast: true |
| 16 | + matrix: |
| 17 | + os: [ubuntu-latest, windows-latest] |
| 18 | + php: [7.4] |
| 19 | + laravel: [8.*] |
| 20 | + dependency-version: [prefer-lowest, prefer-stable] |
| 21 | + include: |
| 22 | + - laravel: 8.* |
| 23 | + testbench: 6.* |
| 24 | + |
| 25 | + name: P${{ matrix.php }} - L${{ matrix.laravel }} - ${{ matrix.dependency-version }} - ${{ matrix.os }} |
| 26 | + |
| 27 | + steps: |
| 28 | + - name: Checkout code |
| 29 | + uses: actions/checkout@v2 |
| 30 | + |
| 31 | + - name: Cache dependencies |
| 32 | + uses: actions/cache@v2 |
| 33 | + with: |
| 34 | + path: ~/.composer/cache/files |
| 35 | + key: dependencies-laravel-${{ matrix.laravel }}-php-${{ matrix.php }}-composer-${{ hashFiles('composer.json') }} |
| 36 | + |
| 37 | + - name: Setup PHP |
| 38 | + uses: shivammathur/setup-php@v2 |
| 39 | + with: |
| 40 | + php-version: ${{ matrix.php }} |
| 41 | + extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite, bcmath, soap, intl, gd, exif, iconv, imagick |
| 42 | + coverage: none |
| 43 | + |
| 44 | + - name: Install dependencies |
| 45 | + run: | |
| 46 | + composer require "laravel/framework:${{ matrix.laravel }}" "orchestra/testbench:${{ matrix.testbench }}" --no-interaction --no-update |
| 47 | + composer update --${{ matrix.dependency-version }} --prefer-dist --no-interaction --no-suggest |
| 48 | +
|
| 49 | + - name: Execute tests |
| 50 | + run: vendor/bin/phpunit |
0 commit comments