Skip to content

Commit 21cc7bf

Browse files
authored
Merge pull request #774 from mlocati/github-actions-only-if-needed
Run GitHub Actions only when needed
2 parents e526b5c + 2920093 commit 21cc7bf

File tree

2 files changed

+21
-1
lines changed

2 files changed

+21
-1
lines changed

.github/workflows/coding-style.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,14 @@
11
name: Coding Style
22

3-
on: [push, pull_request]
3+
on:
4+
push:
5+
paths:
6+
- .github/workflows/coding-style.yml
7+
- "**.php"
8+
pull_request:
9+
paths:
10+
- .github/workflows/coding-style.yml
11+
- "**.php"
412

513
jobs:
614
php:

.github/workflows/phpunit.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,19 @@ name: PHPUnit
22

33
on:
44
pull_request:
5+
paths:
6+
- .github/workflows/phpunit.yml
7+
- "src/**"
8+
- "tests/**"
9+
- composer.json
10+
- phpunit.xml.dist
511
push:
12+
paths:
13+
- .github/workflows/phpunit.yml
14+
- "src/**"
15+
- "tests/**"
16+
- composer.json
17+
- phpunit.xml.dist
618

719
jobs:
820
ubuntu:

0 commit comments

Comments
 (0)