|
1 | 1 | name: run-tests |
2 | 2 |
|
3 | 3 | on: |
4 | | - push: |
5 | | - pull_request: |
6 | | - schedule: |
7 | | - - cron: "0 0 * * *" |
| 4 | + push: |
| 5 | + pull_request: |
| 6 | + schedule: |
| 7 | + - cron: '0 0 * * *' |
8 | 8 |
|
9 | 9 | jobs: |
10 | | - test: |
11 | | - if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name != github.repository |
12 | | - runs-on: ubuntu-latest |
13 | | - strategy: |
14 | | - fail-fast: false |
15 | | - matrix: |
16 | | - php: [8.5, 8.4, 8.3, 8.2, 8.1] |
17 | | - laravel: ["^12.0", "^11.0", "^10.0", "^9.0"] |
18 | | - dependency-version: [prefer-lowest, prefer-stable] |
19 | | - exclude: |
20 | | - - laravel: "^12.0" |
21 | | - php: 8.1 |
22 | | - - laravel: "^11.0" |
23 | | - php: 8.1 |
24 | | - - laravel: "^10.0" |
25 | | - php: 8.4 |
26 | | - - laravel: "^10.0" |
27 | | - php: 8.5 |
28 | | - - laravel: "^9.0" |
29 | | - php: 8.4 |
30 | | - - laravel: "^9.0" |
31 | | - php: 8.5 |
32 | | - name: P${{ matrix.php }} - L${{ matrix.laravel }} - ${{ matrix.dependency-version }} |
33 | | - |
34 | | - steps: |
35 | | - - name: Checkout code |
36 | | - uses: actions/checkout@v4 |
37 | | - |
38 | | - - name: Setup PHP |
39 | | - uses: shivammathur/setup-php@v2 |
40 | | - with: |
41 | | - php-version: ${{ matrix.php }} |
42 | | - extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite, mysql, mysqli, pdo_mysql, bcmath, soap, intl, gd, exif, iconv, imagick, fileinfo |
43 | | - coverage: none |
44 | | - |
45 | | - - name: Install dependencies |
46 | | - run: | |
47 | | - composer require "laravel/framework:${{ matrix.laravel }}" "nesbot/carbon:>=2.72" --dev --no-interaction --no-update |
48 | | - composer update --${{ matrix.dependency-version }} --prefer-dist --no-interaction |
49 | | -
|
50 | | - - name: Execute tests |
51 | | - run: vendor/bin/pest |
| 10 | + test: |
| 11 | + if: "github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name != github.repository" |
| 12 | + |
| 13 | + runs-on: ubuntu-latest |
| 14 | + |
| 15 | + strategy: |
| 16 | + fail-fast: false |
| 17 | + matrix: |
| 18 | + php: [8.5, 8.4, 8.3, 8.2, 8.1] |
| 19 | + laravel: [^9.0, ^10.0, ^11.0, ^12.0, ^13.0] |
| 20 | + dependency-version: [prefer-lowest, prefer-stable] |
| 21 | + exclude: |
| 22 | + - laravel: ^12.0 |
| 23 | + php: 8.1 |
| 24 | + - laravel: ^11.0 |
| 25 | + php: 8.1 |
| 26 | + - laravel: ^10.0 |
| 27 | + php: 8.4 |
| 28 | + - laravel: ^10.0 |
| 29 | + php: 8.5 |
| 30 | + - laravel: ^9.0 |
| 31 | + php: 8.4 |
| 32 | + - laravel: ^9.0 |
| 33 | + php: 8.5 |
| 34 | + - laravel: ^13.0 |
| 35 | + php: 8.2 |
| 36 | + - laravel: ^13.0 |
| 37 | + php: 8.1 |
| 38 | + |
| 39 | + name: P${{ matrix.php }} - L${{ matrix.laravel }} - ${{ matrix.dependency-version }} |
| 40 | + |
| 41 | + steps: |
| 42 | + - name: Checkout code |
| 43 | + uses: actions/checkout@v4 |
| 44 | + |
| 45 | + - name: Setup PHP |
| 46 | + uses: shivammathur/setup-php@v2 |
| 47 | + with: |
| 48 | + php-version: ${{ matrix.php }} |
| 49 | + extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite, mysql, mysqli, pdo_mysql, bcmath, soap, intl, gd, exif, iconv, imagick, fileinfo |
| 50 | + coverage: none |
| 51 | + |
| 52 | + - name: Install dependencies |
| 53 | + run: | |
| 54 | + composer require "laravel/framework:${{ matrix.laravel }}" "nesbot/carbon:>=2.72" --dev --no-interaction --no-update |
| 55 | + composer update --${{ matrix.dependency-version }} --prefer-dist --no-interaction |
| 56 | +
|
| 57 | + - name: Execute tests |
| 58 | + run: vendor/bin/pest |
0 commit comments