|
21 | 21 | - name: "Validate Mergable" |
22 | 22 | run: git merge origin/master --no-commit --ff-only |
23 | 23 |
|
24 | | - render-php: |
| 24 | + render-php-default: |
25 | 25 | needs: validate-mergable |
26 | 26 | runs-on: ${{ matrix.operating-system }} |
27 | 27 |
|
|
62 | 62 | uses: actions/cache@v3 |
63 | 63 | with: |
64 | 64 | path: vendor |
65 | | - key: composer-${{ steps.composer-hash.outputs.hash }} |
66 | | - restore-keys: composer-${{ steps.composer-hash.outputs.hash }} |
| 65 | + key: composer-default-${{ steps.composer-hash.outputs.hash }} |
| 66 | + restore-keys: composer-default-${{ steps.composer-hash.outputs.hash }} |
67 | 67 |
|
68 | 68 | - name: "Install Dependencies" |
69 | 69 | if: ${{ steps.cache-composer.outputs.cache-hit != 'true' }} |
|
76 | 76 | - name: "PHPUnit" |
77 | 77 | run: ./vendor/bin/phpunit |
78 | 78 |
|
79 | | - - name: "Coverage" |
80 | | - run: echo "$(cat ./.phpunit/coverage.txt)" |
| 79 | + render-php-lowest: |
| 80 | + needs: render-php-default |
| 81 | + runs-on: ${{ matrix.operating-system }} |
| 82 | + |
| 83 | + strategy: |
| 84 | + max-parallel: 3 |
| 85 | + fail-fast: true |
| 86 | + matrix: |
| 87 | + operating-system: ["ubuntu-latest"] |
| 88 | + php-versions: ["8.0", "8.1", "8.2"] |
| 89 | + phpunit-versions: ["latest"] |
| 90 | + |
| 91 | + steps: |
| 92 | + - name: "Checkout" |
| 93 | + uses: actions/checkout@v3 |
| 94 | + with: |
| 95 | + fetch-depth: 0 |
| 96 | + |
| 97 | + - name: "Setup PHP" |
| 98 | + uses: shivammathur/setup-php@v2 |
| 99 | + with: |
| 100 | + php-version: ${{ matrix.php-versions }} |
| 101 | + extensions: mbstring, intl |
| 102 | + ini-values: post_max_size=256M, max_execution_time=180 |
| 103 | + coverage: xdebug |
| 104 | + tools: phpunit:${{ matrix.phpunit-versions }} |
| 105 | + |
| 106 | + - name: "Composer State" |
| 107 | + run: composer update --prefer-lowest --no-install --with-all-dependencies |
| 108 | + |
| 109 | + - name: "Composer Name Hash" |
| 110 | + id: composer-hash |
| 111 | + uses: KEINOS/gh-action-hash-for-cache@main |
| 112 | + with: |
| 113 | + path: ./composer.lock |
| 114 | + |
| 115 | + - name: "Caching" |
| 116 | + id: cache-composer |
| 117 | + uses: actions/cache@v3 |
| 118 | + with: |
| 119 | + path: vendor |
| 120 | + key: composer-lowest-${{ steps.composer-hash.outputs.hash }} |
| 121 | + restore-keys: composer-lowest-${{ steps.composer-hash.outputs.hash }} |
| 122 | + |
| 123 | + - name: "Install Dependencies" |
| 124 | + if: ${{ steps.cache-composer.outputs.cache-hit != 'true' }} |
| 125 | + run: composer install |
| 126 | + |
| 127 | + - name: "Linux: Restore Vendor Executable" |
| 128 | + if: matrix.operating-system == 'ubuntu-latest' |
| 129 | + run: chmod -R 0755 vendor |
| 130 | + |
| 131 | + - name: "PHPUnit" |
| 132 | + run: ./vendor/bin/phpunit |
0 commit comments