Skip to content

Commit 771dc7a

Browse files
committed
ci: enable workflows for pull-requests
1 parent 5741bbc commit 771dc7a

File tree

3 files changed

+30
-3
lines changed

3 files changed

+30
-3
lines changed

.github/workflows/lint-and-analyse.yml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,15 @@
11
name: Lint and analyse files
22

3-
on: [push]
3+
on:
4+
push:
5+
pull_request:
6+
branches:
7+
# Branches from forks have the form 'user:branch-name' so we only run
8+
# this job on pull_request events for branches that look like fork
9+
# branches. Without this we would end up running this job twice for non
10+
# forked PRs, once for the push and then once for opening the PR.
11+
# Source: https://github.community/t/how-to-trigger-an-action-on-push-or-pull-request-but-not-both/16662/10
12+
- '**:**'
413

514
jobs:
615
lint-php:

.github/workflows/lint-docs.yml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,15 @@
11
name: lint php documentation
2-
on: [push]
32

3+
on:
4+
push:
5+
pull_request:
6+
branches:
7+
# Branches from forks have the form 'user:branch-name' so we only run
8+
# this job on pull_request events for branches that look like fork
9+
# branches. Without this we would end up running this job twice for non
10+
# forked PRs, once for the push and then once for opening the PR.
11+
# Source: https://github.community/t/how-to-trigger-an-action-on-push-or-pull-request-but-not-both/16662/10
12+
- '**:**'
413
jobs:
514
lint-docs:
615
runs-on: ubuntu-latest

.github/workflows/tests.yml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,15 @@
11
name: Run tests
22

3-
on: [push]
3+
on:
4+
push:
5+
pull_request:
6+
branches:
7+
# Branches from forks have the form 'user:branch-name' so we only run
8+
# this job on pull_request events for branches that look like fork
9+
# branches. Without this we would end up running this job twice for non
10+
# forked PRs, once for the push and then once for opening the PR.
11+
# Source: https://github.community/t/how-to-trigger-an-action-on-push-or-pull-request-but-not-both/16662/10
12+
- '**:**'
413

514
jobs:
615
test-php:

0 commit comments

Comments
 (0)