|
7 | 7 | runs-on: ${{ matrix.os }} |
8 | 8 | strategy: |
9 | 9 | matrix: |
10 | | - os: [ubuntu-latest, macos-latest, windows-latest] |
11 | | - php: ['7.3', '7.4', '8.0'] |
| 10 | + os: [ubuntu-latest] # (macos-latest, windows-latest) 2.x-dev is under development |
| 11 | + php: ['8.1', '8.2'] |
12 | 12 | dependency-version: [prefer-lowest, prefer-stable] |
| 13 | + parallel: ['', '--parallel'] |
13 | 14 |
|
14 | | - name: PHP ${{ matrix.php }} - ${{ matrix.os }} - ${{ matrix.dependency-version }} |
| 15 | + name: PHP ${{ matrix.php }} - ${{ matrix.os }} - ${{ matrix.dependency-version }} - ${{ matrix.parallel }} |
15 | 16 |
|
16 | 17 | steps: |
17 | | - - name: Checkout |
18 | | - uses: actions/checkout@v2 |
19 | | - |
20 | | - - name: Setup PHP |
21 | | - uses: shivammathur/setup-php@v2 |
22 | | - with: |
23 | | - php-version: ${{ matrix.php }} |
24 | | - tools: composer:v2 |
25 | | - coverage: none |
26 | | - |
27 | | - - name: Setup Problem Matches |
28 | | - run: | |
29 | | - echo "::add-matcher::${{ runner.tool_cache }}/php.json" |
30 | | - echo "::add-matcher::${{ runner.tool_cache }}/phpunit.json" |
31 | | -
|
32 | | - - name: Install PHP dependencies |
33 | | - run: composer update --${{ matrix.dependency-version }} --no-interaction --no-progress --ansi |
34 | | - |
35 | | - - name: Unit Tests |
36 | | - run: ./vendor/bin/pest --colors=always |
| 18 | + - name: Checkout |
| 19 | + uses: actions/checkout@v2 |
| 20 | + |
| 21 | + - name: Setup PHP |
| 22 | + uses: shivammathur/setup-php@v2 |
| 23 | + with: |
| 24 | + php-version: ${{ matrix.php }} |
| 25 | + tools: composer:v2 |
| 26 | + coverage: none |
| 27 | + |
| 28 | + - name: Setup Problem Matches |
| 29 | + run: | |
| 30 | + echo "::add-matcher::${{ runner.tool_cache }}/php.json" |
| 31 | + echo "::add-matcher::${{ runner.tool_cache }}/phpunit.json" |
| 32 | + - name: Install PHP dependencies |
| 33 | + run: composer update --${{ matrix.dependency-version }} --no-interaction --no-progress --ansi |
| 34 | + |
| 35 | + - name: Unit Tests |
| 36 | + run: composer test:unit |
0 commit comments