Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
tangrufus committed Jan 2, 2025
1 parent 353a6ee commit 4c4e7ca
Showing 1 changed file with 6 additions and 11 deletions.
17 changes: 6 additions & 11 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,15 +41,15 @@ jobs:
strategy:
matrix:
php: ${{ fromJSON(needs.php-matrix.outputs.versions) }}
prefer: [--prefer-lowest, --prefer-stable]
dependency-versions: [lowest, highest]
coverage: [none]
exclude:
- php: ${{ needs.php-matrix.outputs.highest }}
prefer: --prefer-stable
dependency-versions: --prefer-stable
coverage: none
include:
- php: ${{ needs.php-matrix.outputs.highest }}
prefer: --prefer-stable
dependency-versions: --prefer-stable
coverage: xdebug
steps:
- uses: actions/checkout@v4
Expand All @@ -61,15 +61,10 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- id: composer-cache
run: echo "dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT
- uses: actions/cache@v4
- uses: ramsey/composer-install@v3
with:
path: ${{ steps.composer-cache.outputs.dir }}
key: ${{ runner.os }}-${{ matrix.php }}-composer-${{ matrix.prefer }}-${{ hashFiles('**/composer.json') }}-${{ github.run_id }}
restore-keys: ${{ runner.os }}-${{ matrix.php }}-composer-${{ matrix.prefer }}-

- run: composer update --no-progress --prefer-dist --optimize-autoloader ${{ matrix.prefer }}
dependency-versions: ${{ matrix.dependency-versions }}
composer-options: --no-audit --optimize-autoloader

- run: composer pest:unit -- --ci --coverage-clover coverage.xml
if: ${{ matrix.coverage == 'xdebug' }}
Expand Down

0 comments on commit 4c4e7ca

Please sign in to comment.