avoid running tests twice for pull requests
This implements the suggested method from [1]. It runs tests on all pushes to our own repository and for pull requests coming from other people's forks. [1] https://github.community/t/how-to-trigger-an-action-on-push-or-pull-request-but-not-both/16662/10
This commit is contained in:
parent
2cf7c325f8
commit
7bbf38eeb4
|
@ -1,6 +1,10 @@
|
|||
name: PHP Code Style
|
||||
|
||||
on: [push, pull_request]
|
||||
on:
|
||||
push:
|
||||
pull_request:
|
||||
branches:
|
||||
- '**:**'
|
||||
|
||||
jobs:
|
||||
phpcs:
|
||||
|
|
|
@ -1,6 +1,10 @@
|
|||
name: Linux Unit Tests
|
||||
|
||||
on: [push, pull_request]
|
||||
on:
|
||||
push:
|
||||
pull_request:
|
||||
branches:
|
||||
- '**:**'
|
||||
|
||||
jobs:
|
||||
run:
|
||||
|
|
|
@ -1,6 +1,10 @@
|
|||
name: Windows Unit Tests
|
||||
|
||||
on: [push, pull_request]
|
||||
on:
|
||||
push:
|
||||
pull_request:
|
||||
branches:
|
||||
- '**:**'
|
||||
|
||||
jobs:
|
||||
run:
|
||||
|
|
Loading…
Reference in New Issue