|
1 | 1 | name: Tests |
2 | 2 |
|
3 | 3 | on: |
4 | | - push: |
5 | | - paths: |
6 | | - - '**.php' |
7 | | - - phpunit.xml.dist |
8 | | - - .github/workflows/pest.yml |
9 | | - - composer.json |
10 | | - pull_request: |
11 | | - branches: |
12 | | - - main |
| 4 | + push: |
| 5 | + paths: |
| 6 | + - '**.php' |
| 7 | + - phpunit.xml.dist |
| 8 | + - .github/workflows/pest.yml |
| 9 | + - composer.json |
| 10 | + pull_request: |
| 11 | + branches: |
| 12 | + - main |
13 | 13 |
|
14 | 14 | jobs: |
15 | | - test: |
16 | | - runs-on: ubuntu-latest |
| 15 | + test: |
| 16 | + runs-on: ubuntu-latest |
17 | 17 |
|
18 | | - strategy: |
19 | | - fail-fast: true |
20 | | - matrix: |
21 | | - php: [8.3, 8.2, 8.1] |
22 | | - laravel: ['8.*', '9.*', '10.*', '11.*'] |
23 | | - stability: [prefer-lowest, prefer-stable] |
24 | | - include: |
25 | | - - laravel: 10.* |
26 | | - testbench: 8.* |
27 | | - - laravel: 9.* |
28 | | - testbench: 7.* |
29 | | - - laravel: 8.* |
30 | | - testbench: ^6.23 |
31 | | - - laravel: 11.* |
32 | | - testbench: 9.* |
33 | | - exclude: |
34 | | - - laravel: 9.* |
35 | | - php: 8.2 |
36 | | - stability: prefer-lowest |
37 | | - - laravel: 9.* |
38 | | - php: 8.3 |
39 | | - - laravel: 8.* |
40 | | - php: 8.2 |
41 | | - stability: prefer-lowest |
42 | | - - laravel: 8.* |
43 | | - php: 8.3 |
44 | | - - laravel: 11.* |
45 | | - php: 8.1 |
| 18 | + strategy: |
| 19 | + fail-fast: true |
| 20 | + matrix: |
| 21 | + php: [8.3, 8.2, 8.1] |
| 22 | + laravel: [12.*, 11.*, 10.*, 9.*, 8.*] |
| 23 | + stability: [prefer-lowest, prefer-stable] |
| 24 | + include: |
| 25 | + - laravel: 10.* |
| 26 | + testbench: 8.* |
| 27 | + - laravel: 9.* |
| 28 | + testbench: 7.* |
| 29 | + - laravel: 8.* |
| 30 | + testbench: ^6.23 |
| 31 | + - laravel: 11.* |
| 32 | + testbench: 9.* |
| 33 | + - laravel: 12.* |
| 34 | + testbench: 10.* |
| 35 | + exclude: |
| 36 | + - laravel: 9.* |
| 37 | + php: 8.2 |
| 38 | + stability: prefer-lowest |
| 39 | + - laravel: 9.* |
| 40 | + php: 8.3 |
| 41 | + - laravel: 8.* |
| 42 | + php: 8.2 |
| 43 | + stability: prefer-lowest |
| 44 | + - laravel: 8.* |
| 45 | + php: 8.3 |
| 46 | + - laravel: 11.* |
| 47 | + php: 8.1 |
| 48 | + - laravel: 12.* |
| 49 | + php: 8.1 |
46 | 50 |
|
47 | | - name: P${{ matrix.php }} - L${{ matrix.laravel }} - ${{ matrix.stability }} |
| 51 | + name: P${{ matrix.php }} - L${{ matrix.laravel }} - ${{ matrix.stability }} |
48 | 52 |
|
49 | | - steps: |
50 | | - - name: Checkout code |
51 | | - uses: actions/checkout@v3 |
| 53 | + steps: |
| 54 | + - name: Checkout code |
| 55 | + uses: actions/checkout@v3 |
52 | 56 |
|
53 | | - - name: Setup PHP |
54 | | - uses: shivammathur/setup-php@v2 |
55 | | - with: |
56 | | - php-version: ${{ matrix.php }} |
57 | | - extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite, bcmath, soap, intl, gd, exif, iconv, imagick, fileinfo |
58 | | - coverage: none |
| 57 | + - name: Setup PHP |
| 58 | + uses: shivammathur/setup-php@v2 |
| 59 | + with: |
| 60 | + php-version: ${{ matrix.php }} |
| 61 | + extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite, bcmath, soap, intl, gd, exif, iconv, imagick, fileinfo |
| 62 | + coverage: none |
59 | 63 |
|
60 | | - - name: Setup problem matchers |
61 | | - run: | |
62 | | - echo "::add-matcher::${{ runner.tool_cache }}/php.json" |
63 | | - echo "::add-matcher::${{ runner.tool_cache }}/phpunit.json" |
| 64 | + - name: Setup problem matchers |
| 65 | + run: | |
| 66 | + echo "::add-matcher::${{ runner.tool_cache }}/php.json" |
| 67 | + echo "::add-matcher::${{ runner.tool_cache }}/phpunit.json" |
64 | 68 |
|
65 | | - - name: Install dependencies |
66 | | - run: | |
67 | | - composer require "laravel/framework:${{ matrix.laravel }}" "orchestra/testbench:${{ matrix.testbench }}" --no-interaction --no-update --ignore-platform-reqs |
68 | | - composer update --${{ matrix.stability }} --prefer-dist --no-interaction --ignore-platform-reqs |
| 69 | + - name: Install dependencies |
| 70 | + run: | |
| 71 | + composer require "laravel/framework:${{ matrix.laravel }}" "orchestra/testbench:${{ matrix.testbench }}" --no-interaction --no-update --ignore-platform-reqs |
| 72 | + composer update --${{ matrix.stability }} --prefer-dist --no-interaction --ignore-platform-reqs |
69 | 73 |
|
70 | | - - name: List Installed Dependencies |
71 | | - run: composer show -D |
| 74 | + - name: List Installed Dependencies |
| 75 | + run: composer show -D |
72 | 76 |
|
73 | | - - name: Execute tests |
74 | | - run: vendor/bin/pest |
75 | | - env: |
76 | | - PRINT_NODE_API_KEY: ${{ secrets.PRINT_NODE_API_KEY }} |
77 | | - PRINT_NODE_ID: ${{ secrets.PRINT_NODE_ID }} |
| 77 | + - name: Execute tests |
| 78 | + run: vendor/bin/pest |
| 79 | + env: |
| 80 | + PRINT_NODE_API_KEY: ${{ secrets.PRINT_NODE_API_KEY }} |
| 81 | + PRINT_NODE_ID: ${{ secrets.PRINT_NODE_ID }} |
0 commit comments