another try to fix when github actions run

The attempt in 7bbf38eeb4 to not run
checks twice for our own internal pull requests seem not to have worked,
because checks in external PRs were no longer executed.

This is another approach to achieve the same based on code found at
764f121f9a/.github/workflows/build-and-test.yml (L10-L12)
This commit is contained in:
Andreas Gohr 2021-01-05 11:57:55 +01:00
parent f066a39776
commit bb6dfcb8e3
3 changed files with 6 additions and 15 deletions

View File

@ -1,15 +1,12 @@
name: PHP Code Style
on:
push:
pull_request:
branches:
- '**:**'
on: [push, pull_request]
jobs:
phpcs:
name: PHP CodeSniffer
runs-on: ubuntu-latest
if: github.event_name == 'push' || github.event.pull_request.head.repo.full_name != github.repository
steps:
- uses: actions/checkout@v2

View File

@ -1,15 +1,12 @@
name: Linux Unit Tests
on:
push:
pull_request:
branches:
- '**:**'
on: [push, pull_request]
jobs:
run:
name: PHP ${{ matrix.php-versions }}
runs-on: ubuntu-latest
if: github.event_name == 'push' || github.event.pull_request.head.repo.full_name != github.repository
strategy:
matrix:

View File

@ -1,15 +1,12 @@
name: Windows Unit Tests
on:
push:
pull_request:
branches:
- '**:**'
on: [push, pull_request]
jobs:
run:
name: PHP ${{ matrix.php-versions }}
runs-on: windows-latest
if: github.event_name == 'push' || github.event.pull_request.head.repo.full_name != github.repository
strategy:
matrix: