Skip to content
Draft
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
36 changes: 36 additions & 0 deletions .github/workflows/php-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,40 @@ name: PHP Tests
on: pull_request

jobs:
changes:
runs-on: ubuntu-latest-low
permissions:
contents: read
pull-requests: read

outputs:
src: ${{ steps.changes.outputs.src}}

steps:
- uses: dorny/paths-filter@de90cc6fb38fc0963ad72b210f1f284cd68cea36 # v3.0.2
id: changes
continue-on-error: true
with:
filters: |
src:
- '.github/workflows/**'
- 'lib/**'
- 'appinfo/**'
- 'composer/**'
- 'templates/**'
- 'tests/php/**'
- 'composer.json'
- 'composer.lock'
- 'phpunit.integration.xml'
- 'phpunit.unit.xml'
- '**.php'

unit-tests:
runs-on: ubuntu-latest

needs: changes
if: needs.changes.outputs.src != 'false'

strategy:
matrix:
php-versions: [ '8.2', '8.3', '8.4', '8.5' ]
Expand Down Expand Up @@ -53,6 +85,10 @@ jobs:

integration-tests:
runs-on: ubuntu-latest

needs: changes
if: needs.changes.outputs.src != 'false'

strategy:
matrix:
php-versions: [ '8.2', '8.3', '8.4', '8.5' ]
Expand Down
Loading