Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 6 additions & 4 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,10 @@ on:
- master
paths-ignore:
- '**.md'
- '**.yml'
pull_request:
paths-ignore:
- '**.md'
- '**.yml'

jobs:
tests:
name: PHP ${{ matrix.php }} - ${{ matrix.stability }}
Expand All @@ -26,7 +25,7 @@ jobs:

steps:
- name: Checkout Code
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Setup PHP
uses: shivammathur/setup-php@v2
Expand All @@ -44,7 +43,7 @@ jobs:
if: ${{ !env.ACT }}

- name: Cache composer dependencies
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: ${{ steps.composer-cache.outputs.dir }}
key: ${{ runner.os }}-composer-${{ matrix.stability }}-${{ matrix.php }} }}
Expand All @@ -58,6 +57,9 @@ jobs:
max_attempts: 5
command: composer update --${{ matrix.stability }} --prefer-dist --no-interaction --no-progress --quiet

- name: Lint PHP files
run: find src/ tests/ -name "*.php" -exec php -l {} \;

- name: Execute PHPUnit
run: vendor/bin/phpunit
if: ${{ !env.CC_TOKEN || (matrix.stability != 'prefer-stable' && matrix.php != '8.2') }}
Expand Down