Skip to content

Commit

Permalink
Update workflows to always run
Browse files Browse the repository at this point in the history
  • Loading branch information
jeromegamez committed Jun 14, 2022
1 parent 135835c commit afd0b11
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 35 deletions.
22 changes: 4 additions & 18 deletions .github/workflows/integration-tests.yml
Original file line number Diff line number Diff line change
@@ -1,31 +1,17 @@
name: Integration Tests

on:
pull_request:
branches:
- '**:**'
paths:
- 'composer.json'
- 'phpunit.xml.dist'
- 'phpstan.neon.dist'
- 'src/**/*.php'
- 'tests/**/*.php'
push:
tags-ignore:
- '**'
paths:
- 'composer.json'
- 'phpunit.xml.dist'
- 'phpstan.neon.dist'
- 'src/**/*.php'
- 'tests/**/*.php'
pull_request:
workflow_dispatch:

jobs:
integration-tests:
name: Integration Tests
runs-on: ubuntu-latest
if: github.repository_owner == 'kreait' || github.repository_owner == 'beste-access'

# We want integration tests only to run on the original repo and not on internal PRs
if: (github.repository_owner == 'kreait' || github.repository_owner == 'beste-access') && (github.event_name == 'push' || github.event.pull_request.head.repo.full_name != github.repository)

env:
php-version: '8.0'
Expand Down
21 changes: 4 additions & 17 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -1,28 +1,15 @@
name: Tests

on:
pull_request:
branches:
- '**:**'
paths:
- 'composer.json'
- 'phpunit.xml.dist'
- 'phpstan.neon.dist'
- 'src/**/*.php'
- 'tests/**/*.php'
push:
tags-ignore:
- '**'
paths:
- 'composer.json'
- 'phpunit.xml.dist'
- 'phpstan.neon.dist'
- 'src/**/*.php'
- 'tests/**/*.php'
pull_request:
workflow_dispatch:

jobs:
tests:
# Don't run the tests on internal PRs
if: github.event_name == 'push' || github.event.pull_request.head.repo.full_name != github.repository

name: PHP ${{ matrix.php }} (${{ matrix.dependencies }})
runs-on: ubuntu-latest

Expand Down

0 comments on commit afd0b11

Please sign in to comment.