Skip to content

Commit

Permalink
Various build script improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
aik099 committed Dec 13, 2024
1 parent c6717ac commit be816cd
Showing 1 changed file with 17 additions and 7 deletions.
24 changes: 17 additions & 7 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,16 +17,16 @@ jobs:

tests:
name: Tests (PHP ${{ matrix.php }})
runs-on: Ubuntu-20.04
runs-on: ubuntu-latest

strategy:
matrix:
php: [ '5.4', '5.5', '5.6', '7.0', '7.1', '7.2', '7.3', '7.4', '8.0']
php: [ '5.4', '5.5', '5.6', '7.0', '7.1', '7.2', '7.3', '7.4', '8.0', '8.1', '8.2', '8.3', '8.4']
fail-fast: false

steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v4
with:
fetch-depth: 2

Expand All @@ -38,16 +38,26 @@ jobs:
tools: composer

- name: Install dependencies
uses: "ramsey/composer-install@v1"
uses: "ramsey/composer-install@v3"
with:
dependency-versions: "highest"

- name: Run tests
run: |
vendor/bin/phpunit -v --coverage-clover=coverage.clover
vendor/bin/phpunit --log-junit junit.xml --coverage-clover=coverage.clover
- name: Upload Coverage to CodeCov
uses: codecov/codecov-action@v2
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v4
if: ${{ !cancelled() }}
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: coverage.xml

- name: Upload test results to Codecov
if: ${{ !cancelled() }}
uses: codecov/test-results-action@v1
with:
token: ${{ secrets.CODECOV_TOKEN }}

- name: Upload Coverage to Scrutinizer CI (PHP < 8.0)
if: "${{ matrix.php < '8.0' }}"
Expand Down

0 comments on commit be816cd

Please sign in to comment.