Skip to content

Commit

Permalink
Github action tweak
Browse files Browse the repository at this point in the history
  • Loading branch information
rotimi committed May 11, 2024
1 parent d8dffa2 commit f8fb6d3
Showing 1 changed file with 11 additions and 15 deletions.
26 changes: 11 additions & 15 deletions .github/workflows/php.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ name: Run PHP Tests and Code Quality Tools

on:
push:
branches: [ master ]
branches: [ 3.X ]
pull_request:
branches: [ master ]
branches: [ 3.X ]
schedule:
# Also run every Sunday at midnight
- cron: '0 0 * * 0'
Expand All @@ -21,31 +21,27 @@ jobs:
# PHPUnit 8.x is the latest stable release that supports PHP 7.2 and that runs fine
# dependency-version: [prefer-lowest, prefer-stable]
dependency-version: [prefer-stable]
os: [ubuntu-18.04, ubuntu-20.04]
os: [ubuntu-20.04]
include:
- os: ubuntu-18.04
- os: ubuntu-20.04
php: 7.2
- os: ubuntu-18.04
- os: ubuntu-20.04
php: 7.3
- os: ubuntu-18.04
php: 7.4
- os: ubuntu-18.04
php: 8.0
- os: ubuntu-20.04
php: 7.4
- os: ubuntu-20.04
php: 8.0
exclude:
- os: ubuntu-20.04
php: 7.2
- os: ubuntu-20.04
php: 7.3
# exclude:
# - os: ubuntu-20.04
# php: 7.2
# - os: ubuntu-20.04
# php: 7.3

name: PHP-${{ matrix.php }} - ${{ matrix.dependency-version }} - ${{ matrix.os }}

steps:
- name: Checkout code
uses: actions/checkout@v2
uses: actions/checkout@v4

- name: Setup PHP
uses: shivammathur/setup-php@v2
Expand Down

0 comments on commit f8fb6d3

Please sign in to comment.