-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #10 from ashnazg/master
builds not running... try setup from pear-core
- Loading branch information
Showing
1 changed file
with
23 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |