Skip to content

Commit

Permalink
ci: Only run integration on php changes
Browse files Browse the repository at this point in the history
Signed-off-by: Julius Härtl <jus@bitgrid.net>
  • Loading branch information
juliusknorr committed Oct 19, 2023
1 parent 202fdb2 commit ffe19e6
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,36 @@ env:
APP_NAME: richdocuments

jobs:
changes:
runs-on: ubuntu-latest

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

steps:
- uses: dorny/paths-filter@4512585405083f25c027a35db413c2b3b9006d50 # v2.11.1
id: changes
continue-on-error: true
with:
filters: |
src:
- '.github/workflows/**'
- 'appinfo/**'
- 'lib/**'
- 'templates/**'
- 'tests/**'
- 'vendor/**'
- 'vendor-bin/**'
- '.php-cs-fixer.dist.php'
- 'composer.json'
- 'composer.lock'
php:
runs-on: ubuntu-latest

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

strategy:
# do not stop on another job's failure
fail-fast: false
Expand Down Expand Up @@ -87,6 +114,9 @@ jobs:
mysql:
runs-on: ubuntu-latest

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

strategy:
# do not stop on another job's failure
fail-fast: false
Expand Down Expand Up @@ -163,6 +193,9 @@ jobs:
pgsql:
runs-on: ubuntu-latest

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

strategy:
# do not stop on another job's failure
fail-fast: false
Expand Down Expand Up @@ -241,6 +274,9 @@ jobs:
oci:
runs-on: ubuntu-22.04

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

strategy:
# do not stop on another job's failure
fail-fast: false
Expand Down

0 comments on commit ffe19e6

Please sign in to comment.