Skip to content

Commit

Permalink
Try GHA
Browse files Browse the repository at this point in the history
  • Loading branch information
cicnavi committed Jan 24, 2025
1 parent 8aba967 commit 2732216
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/php.yml
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ jobs:
run: composer audit

unit-tests-linux:
name: "Unit tests, PHP ${{ matrix.php-versions }}, ${{ matrix.operating-system }}"
name: "Unit tests, PHP ${{ matrix.php-versions }}, ${{ matrix.jwt-version }}, ${{ matrix.operating-system }}"
runs-on: ${{ matrix.operating-system }}
needs: [linter, quality, security]
strategy:
Expand Down Expand Up @@ -199,15 +199,15 @@ jobs:
run: composer install --no-progress --prefer-dist --optimize-autoloader

- name: Run unit tests with coverage
if: ${{ matrix.php-versions == '8.3' }}
if: ${{ matrix.php-versions == '8.3' && matrix.jwt-version == '^4.0' }}
run: vendor/bin/phpunit

- name: Run unit tests (no coverage)
if: ${{ matrix.php-versions != '8.3' }}
run: vendor/bin/phpunit --no-coverage

- name: Save coverage data
if: ${{ matrix.php-versions == '8.3' }}
if: ${{ matrix.php-versions == '8.3' && matrix.jwt-version == '^4.0' }}
uses: actions/upload-artifact@v4
with:
name: coverage-data
Expand All @@ -230,7 +230,7 @@ jobs:
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-versions }}
extensions: ctype, date, dom, filter, hash, mbstring, openssl, pcre, soap, spl, xml
extensions: ctype, date, dom, filter, hash, mbstring, openssl, pcre, soap, spl, xml, sodium
tools: composer
ini-values: error_reporting=E_ALL
coverage: none
Expand Down

0 comments on commit 2732216

Please sign in to comment.