Skip to content

Commit

Permalink
Merge pull request #10 from ashnazg/master
Browse files Browse the repository at this point in the history
builds not running... try setup from pear-core
  • Loading branch information
ashnazg committed Mar 10, 2024
2 parents d7ef170 + 33d6f00 commit 8e7ac86
Showing 1 changed file with 23 additions and 32 deletions.
55 changes: 23 additions & 32 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,48 +1,39 @@
---
name: Run Text_Diff Tests
on:
push:
branches:
- master
pull_request:
branches: [master]

jobs:
build:
runs-on: ${{ matrix.os }}
test:
runs-on: ${{ matrix.operating-system }}
strategy:
fail-fast: false
matrix:
php:
- 8.3
- 8.2
- 8.1
- 8.0
- 7.4
- 7
- 5.6
os: [ubuntu-latest, ubuntu-22.04]
operating-system: [ ubuntu-latest ]
php: [ '5.4', '5.5', '5.6', '7.0', '7.1', '7.2', '7.3', '7.4', '8.0', '8.1', '8.2', '8.3' ]
dependencies: [ 'locked' ]

name: PHP ${{ matrix.php }} on ${{ matrix.operating-system }} with ${{ matrix.dependencies }} dependencies

steps:
- name: Checkout
uses: actions/checkout@v4
- uses: actions/checkout@v4
name: Checkout repository

- 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
coverage: none

- uses: ramsey/composer-install@v1
with:
path: vendor
key: ${{ runner.os }}-php-${{ hashFiles('**/composer.lock') }}
restore-keys: |
${{ runner.os }}-php-
dependency-versions: ${{ matrix.dependencies }}

- name: Run tests
run: |-
composer install
run: |
umask 0022
if [ ${{ matrix.php }} == 5.3 ] ; then
pear run-tests -r tests
else
pear run-tests -d -r tests
fi
sudo pear run-tests --ini=" -d include_path=.:/usr/share/php" -q -d -r ./tests
pear package package.xml
composer install
composer validate

0 comments on commit 8e7ac86

Please sign in to comment.