|
1 | | -name: Tests |
| 1 | +name: "Run Tests - Current" |
2 | 2 |
|
3 | | -on: |
4 | | - push: |
5 | | - pull_request: |
| 3 | +on: [push, pull_request] |
6 | 4 |
|
7 | 5 | jobs: |
8 | | - run: |
9 | | - runs-on: 'ubuntu-latest' |
| 6 | + test: |
| 7 | + |
| 8 | + runs-on: ubuntu-latest |
10 | 9 | strategy: |
11 | 10 | fail-fast: false |
12 | 11 | matrix: |
13 | | - php: ['8.1', '8.2','8.3'] |
14 | | - os: [ubuntu-latest] |
15 | | - stability: [prefer-stable] |
16 | | - laravel: [9.*, 10.*, 11.*] |
| 12 | + php: [8.3, 8.2, 8.1] |
| 13 | + laravel: ["^11.0", "^10.0"] |
| 14 | + dependency-version: [prefer-lowest, prefer-stable] |
17 | 15 | include: |
18 | | - - laravel: 9.* |
19 | | - testbench: 7.* |
20 | | - - laravel: 10.* |
21 | | - testbench: 7.* |
22 | | - - laravel: 11.* |
23 | | - testbench: 7.* |
| 16 | + - laravel: "^11.0" |
| 17 | + testbench: 9.* |
| 18 | + - laravel: "^10.0" |
| 19 | + testbench: 8.* |
| 20 | + exclude: |
| 21 | + - laravel: "^11.0" |
| 22 | + php: 8.1 |
24 | 23 |
|
25 | | - name: P${{ matrix.php }} - L${{ matrix.laravel }} - ${{ matrix.stability }} - ${{ matrix.os }} |
| 24 | + name: P${{ matrix.php }} - L${{ matrix.laravel }} - ${{ matrix.dependency-version }} |
26 | 25 |
|
27 | 26 | steps: |
28 | 27 | - name: Checkout code |
29 | | - uses: actions/checkout@v3 |
| 28 | + uses: actions/checkout@v4 |
30 | 29 |
|
31 | 30 | - name: Setup PHP |
32 | 31 | uses: shivammathur/setup-php@v2 |
33 | 32 | with: |
34 | 33 | php-version: ${{ matrix.php }} |
35 | | - extensions: bcmath, curl, dom, mbstring, pcntl, sockets, xml, intl |
| 34 | + extensions: curl, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite, iconv |
36 | 35 | coverage: none |
37 | 36 |
|
38 | | - - name: Set up Docker |
39 | | - run: | |
40 | | - sudo rm /usr/local/bin/docker-compose |
41 | | - curl -SL https://github.com/docker/compose/releases/download/v2.15.1/docker-compose-`uname -s`-`uname -m` > docker-compose |
42 | | - chmod +x docker-compose |
43 | | - sudo mv docker-compose /usr/local/bin |
44 | | - - name: Start Docker container |
45 | | - run: docker-compose up -d |
| 37 | + - name: Install dependencies (remove passport) |
| 38 | + run: composer remove --dev laravel/passport --no-interaction --no-update |
| 39 | + if: matrix.laravel == '^8.12' |
46 | 40 |
|
47 | 41 | - name: Install dependencies |
48 | 42 | run: | |
49 | | - composer update --${{ matrix.stability }} --prefer-dist --no-interaction |
| 43 | + composer require "laravel/framework:${{ matrix.laravel }}" "orchestra/testbench:${{ matrix.testbench }}" "symfony/console:>=4.3.4" "mockery/mockery:^1.3.2" "nesbot/carbon:>=2.62.1" --no-interaction --no-update |
| 44 | + composer update --${{ matrix.dependency-version }} --prefer-dist --no-interaction |
50 | 45 |
|
51 | 46 | - name: Execute tests |
52 | 47 | run: vendor/bin/phpunit |
0 commit comments