Skip to content

Commit

Permalink
Use ubuntu-22.04 and windows-2019 due to queueing issues
Browse files Browse the repository at this point in the history
  • Loading branch information
paulbalandan committed Aug 4, 2024
1 parent 46abdee commit bd19ffa
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/prune-actions-caches.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ on:

jobs:
prune:
runs-on: ubuntu-24.04
runs-on: ubuntu-22.04

steps:
- name: Checkout
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/static-code-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
18 changes: 9 additions & 9 deletions .github/workflows/unit-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand All @@ -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
Expand Down Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit bd19ffa

Please sign in to comment.