diff --git a/.github/workflows/prune-actions-caches.yml b/.github/workflows/prune-actions-caches.yml index c8c61b3..576bfd9 100644 --- a/.github/workflows/prune-actions-caches.yml +++ b/.github/workflows/prune-actions-caches.yml @@ -7,7 +7,7 @@ on: jobs: prune: - runs-on: ubuntu-24.04 + runs-on: ubuntu-22.04 steps: - name: Checkout diff --git a/.github/workflows/static-code-analysis.yml b/.github/workflows/static-code-analysis.yml index ebbd6f1..ec2a550 100644 --- a/.github/workflows/static-code-analysis.yml +++ b/.github/workflows/static-code-analysis.yml @@ -23,7 +23,7 @@ jobs: - 8.3 name: Static Code Analysis - runs-on: ubuntu-24.04 + runs-on: ubuntu-22.04 steps: - name: Checkout code diff --git a/.github/workflows/unit-tests.yml b/.github/workflows/unit-tests.yml index 2e97541..1fe4900 100644 --- a/.github/workflows/unit-tests.yml +++ b/.github/workflows/unit-tests.yml @@ -21,9 +21,9 @@ jobs: php-version: - 8.2 - 8.3 - os: # always use the latest runners - - ubuntu-24.04 - - windows-2022 + os: + - ubuntu-22.04 + - windows-2019 name: Unit Tests runs-on: ${{ matrix.os }} @@ -38,7 +38,7 @@ jobs: php-version: ${{ matrix.php-version }} - name: Setup Git for Windows - if: matrix.os == 'windows-2022' + if: matrix.os == 'windows-2019' run: | git config --global core.autocrlf false git config --global core.eol lf @@ -67,21 +67,21 @@ jobs: run: | bin/parallel-phpunit ${{ env.COVERAGE_OPTION }} env: - COVERAGE_OPTION: ${{ matrix.os != 'windows-2022' && '--coverage' || '' }} + COVERAGE_OPTION: ${{ matrix.os != 'windows-2019' && '--coverage' || '' }} - name: Display structure of coverage files - if: matrix.os != 'windows-2022' + if: matrix.os != 'windows-2019' run: ls -la working-directory: build/cov - name: Merge coverage files into Clover - if: matrix.os != 'windows-2022' + if: matrix.os != 'windows-2019' run: | composer global require phpunit/phpcov --ansi phpcov merge --clover build/phpunit/clover.xml build/cov - name: Upload coverage to Coveralls - if: matrix.os != 'windows-2022' + if: matrix.os != 'windows-2019' run: | composer global require php-coveralls/php-coveralls --ansi php-coveralls --verbose --exclude-no-stmt --ansi --coverage_clover build/phpunit/clover.xml --json_path build/phpunit/coveralls-upload.json @@ -93,7 +93,7 @@ jobs: coveralls-finish: needs: tests name: Notify Coveralls API - runs-on: ubuntu-24.04 + runs-on: ubuntu-22.04 steps: - name: Complete parallel builds