Skip to content

Commit

Permalink
Add php compatibility workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
cmuench committed Sep 7, 2023
1 parent 9d334ec commit 3b52bce
Showing 1 changed file with 41 additions and 0 deletions.
41 changes: 41 additions & 0 deletions .github/workflows/php_compatibility.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
---
name: PHP Compatibility
on:
- push
- pull_request

env:
MIN_PHP_VERSION: 7.4

jobs:
php-compatibility:
name: PHP Compatibility
runs-on: ubuntu-latest
steps:
- name: Checkout PR
uses: actions/[email protected]
if: github.event_name == 'pull_request_target'
with:
ref: ${{ github.event.pull_request.head.sha }}
- name: Checkout HEAD
uses: actions/[email protected]
if: github.event_name == 'push'
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
tools: composer:${{ matrix.composer-version }}, cs2pr
php-version: 8.2
extensions: mcrypt, mbstring, intl
coverage: none
- name: Test src directory
uses: pantheon-systems/phpcompatibility-action@v1
with:
skip-php-setup: true
test-versions: ${{ env.MIN_PHP_VERSION }}-
paths: ${{ github.workspace }}/src
- name: Test tests directory
uses: pantheon-systems/phpcompatibility-action@v1
with:
skip-php-setup: true
test-versions: ${{ env.MIN_PHP_VERSION }}-
paths: ${{ github.workspace }}/tests

0 comments on commit 3b52bce

Please sign in to comment.