CI: Added path filtering to actions

In the hope we can make the CI runs a bit more efficient and energy
conscious, by only running when relevant files have changed.
This commit is contained in:
Dan Brown 2023-10-04 09:18:24 +01:00
parent 0241032f06
commit 1267068d9c
No known key found for this signature in database
GPG Key ID: 46D9F943C24A2EF9
5 changed files with 41 additions and 5 deletions

View File

@ -1,6 +1,12 @@
name: analyse-php
on: [push, pull_request]
on:
push:
paths:
- '**.php'
pull_request:
paths:
- '**.php'
jobs:
build:

View File

@ -1,6 +1,14 @@
name: lint-js
on: [push, pull_request]
on:
push:
paths:
- '**.js'
- '**.json'
pull_request:
paths:
- '**.js'
- '**.json'
jobs:
build:

View File

@ -1,6 +1,12 @@
name: lint-php
on: [push, pull_request]
on:
push:
paths:
- '**.php'
pull_request:
paths:
- '**.php'
jobs:
build:

View File

@ -1,6 +1,14 @@
name: test-migrations
on: [push, pull_request]
on:
push:
paths:
- '**.php'
- 'composer.*'
pull_request:
paths:
- '**.php'
- 'composer.*'
jobs:
build:

View File

@ -1,6 +1,14 @@
name: test-php
on: [push, pull_request]
on:
push:
paths:
- '**.php'
- 'composer.*'
pull_request:
paths:
- '**.php'
- 'composer.*'
jobs:
build: