|
15 | 15 | fail-fast: false |
16 | 16 | matrix: |
17 | 17 | operating-system: [ubuntu-latest, windows-latest, macos-latest] |
18 | | - php-versions: ["7.4", "8.0", "8.1"] |
| 18 | + php-versions: ["7.4", "8.0", "8.1", "8.2", "8.3", "8.4"] |
19 | 19 | steps: |
20 | 20 | - name: Checkout |
21 | 21 | uses: actions/checkout@v2 |
|
27 | 27 | extensions: mysql |
28 | 28 | - name: Get composer cache directory |
29 | 29 | id: composer-cache |
30 | | - run: echo "::set-output name=dir::$(composer config cache-files-dir)" |
| 30 | + run: echo "dir=$(composer config cache-files-dir | tr -d '\n' | tr -d '\r')" >> $GITHUB_OUTPUT |
31 | 31 | - name: Cache composer dependencies |
32 | | - uses: actions/cache@v2 |
| 32 | + uses: actions/cache@v3 |
33 | 33 | with: |
34 | 34 | path: ${{ steps.composer-cache.outputs.dir }} |
35 | 35 | key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.json') }} |
|
44 | 44 | run: composer static-check |
45 | 45 | - name: Run tests |
46 | 46 | run: composer test -- --coverage-clover=build/logs/clover.xml |
47 | | - - name: Upload coverage report to codecov service |
48 | | - if: ${{ matrix.operating-system == 'ubuntu-latest' && matrix.php-versions == '8.0' }} |
49 | | - run: | |
50 | | - wget -c -nc --retry-connrefused --tries=0 https://github.com/satooshi/php-coveralls/releases/download/v2.4.3/php-coveralls.phar |
51 | | - chmod +x php-coveralls.phar |
52 | | - php php-coveralls.phar --version |
53 | | - mkdir -p build/logs |
54 | | - php php-coveralls.phar -v |
55 | | - bash <(curl -s https://codecov.io/bash) |
56 | | - env: |
57 | | - # Running coveralls with default config did not work so followed the workaround below: |
58 | | - # https://github.com/php-coveralls/php-coveralls/issues/273#issuecomment-537473525 |
59 | | - COVERALLS_RUN_LOCALLY: 1 |
60 | | - COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }} |
0 commit comments