Skip to content

Commit

Permalink
Merge pull request #9 from mdeweerd/feat/github-workflow
Browse files Browse the repository at this point in the history
Add .github workflow
  • Loading branch information
CloCkWeRX authored Sep 6, 2023
2 parents cfa27e7 + bd1ab0c commit 4905970
Showing 1 changed file with 47 additions and 0 deletions.
47 changes: 47 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
---
name: Run Text_Diff Tests
on:
push:
pull_request:
branches: [master]
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
php:
- 7.4
- 7
- 5.6
- 5.5
- 5.4
- 5.3
os: [ubuntu-latest, ubuntu-22.04]
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
extensions: xdiff
tools: composer, PEAR
- name: Cache Composer packages
id: composer-cache
uses: actions/cache@v3
with:
path: vendor
key: ${{ runner.os }}-php-${{ hashFiles('**/composer.lock') }}
restore-keys: |
${{ runner.os }}-php-
- name: Run tests
run: |-
composer install
umask 0022
if [ ${{ matrix.php }} == 5.3 ] ; then
pear run-tests -r tests
else
pear run-tests -d -r tests
fi
pear package package.xml
composer validate

0 comments on commit 4905970

Please sign in to comment.