|
20 | 20 | jobs: |
21 | 21 | test: |
22 | 22 | name: Test with PHP ${{ matrix.php }} |
23 | | - runs-on: ubuntu-20.04 |
| 23 | + runs-on: ubuntu-latest |
24 | 24 | env: |
25 | 25 | GIT_COMMIT_SHA: ${{ github.sha }} |
26 | 26 | GIT_BRANCH: ${{ github.ref }} |
27 | 27 |
|
28 | 28 | strategy: |
| 29 | + fail-fast: false |
29 | 30 | matrix: |
30 | | - php: ['8.1'] |
| 31 | + php: ['8.0', '8.1'] |
31 | 32 |
|
32 | 33 | steps: |
33 | | - - name: Checkout |
34 | | - uses: actions/checkout@master |
35 | | - |
36 | | - - name: Set up PHP |
37 | | - uses: shivammathur/setup-php@v2 |
38 | | - with: |
39 | | - php-version: ${{ matrix.php }} |
40 | | - tools: composer:v2 |
41 | | - coverage: xdebug |
42 | | - |
43 | | - - name: Get Composer cache directory |
44 | | - id: composer-cache |
45 | | - run: | |
46 | | - echo "GIT_BRANCH=$(echo ${GIT_BRANCH##*/} | tr / -)" >> $GITHUB_ENV |
47 | | - echo "::set-output name=dir::$(composer config cache-files-dir)" |
48 | | -
|
49 | | - - name: Cache Composer dependencies |
50 | | - uses: actions/cache@v1 |
51 | | - with: |
52 | | - path: ${{ steps.composer-cache.outputs.dir }} |
53 | | - key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }} |
54 | | - restore-keys: ${{ runner.os }}-composer- |
55 | | - |
56 | | - - name: Install dependencies |
57 | | - run: composer install --prefer-dist --no-progress --no-suggest |
58 | | - |
59 | | - - name: Run tests |
60 | | - run: composer test |
| 34 | + - name: Checkout |
| 35 | + uses: actions/checkout@master |
| 36 | + |
| 37 | + - name: Setup PHP ${{ matrix.php }} |
| 38 | + uses: shivammathur/setup-php@v2 |
| 39 | + with: |
| 40 | + php-version: ${{ matrix.php }} |
| 41 | + ini-values: error_reporting=E_ALL |
| 42 | + tools: composer:v2 |
| 43 | + coverage: xdebug |
| 44 | + |
| 45 | + - name: Get Composer cache directory |
| 46 | + id: composer-cache |
| 47 | + run: | |
| 48 | + echo "GIT_BRANCH=$(echo ${GIT_BRANCH##*/} | tr / -)" >> $GITHUB_ENV |
| 49 | + echo "::set-output name=dir::$(composer config cache-files-dir)" |
| 50 | +
|
| 51 | + - name: Cache Composer dependencies |
| 52 | + uses: actions/cache@v1 |
| 53 | + with: |
| 54 | + path: ${{ steps.composer-cache.outputs.dir }} |
| 55 | + key: ${{ runner.os }}-${{ matrix.php }}-composer-${{ hashFiles('**/composer.lock') }} |
| 56 | + restore-keys: ${{ runner.os }}-${{ matrix.php }}-composer- |
| 57 | + |
| 58 | + - name: Install dependencies |
| 59 | + uses: nick-invision/retry@v1 |
| 60 | + with: |
| 61 | + timeout_minutes: 5 |
| 62 | + max_attempts: 3 |
| 63 | + command: composer update --prefer-dist --no-interaction --no-progress |
| 64 | + |
| 65 | + - name: Run tests |
| 66 | + run: composer test |
0 commit comments