Skip to content

Commit a261cfb

Browse files
committed
builds not running... try setup from pear-core
1 parent c03cbc9 commit a261cfb

File tree

1 file changed

+23
-35
lines changed

1 file changed

+23
-35
lines changed

.github/workflows/ci.yml

Lines changed: 23 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -1,51 +1,39 @@
1-
---
2-
name: Run Text_Diff Tests
31
on:
42
push:
3+
branches:
4+
- master
55
pull_request:
6-
branches: [master]
6+
77
jobs:
8-
build:
9-
runs-on: ${{ matrix.os }}
8+
test:
9+
runs-on: ${{ matrix.operating-system }}
1010
strategy:
11+
fail-fast: false
1112
matrix:
12-
php:
13-
- 8.3
14-
- 8.2
15-
- 8.1
16-
- 8.0
17-
- 7.4
18-
- 7
19-
- 5.6
20-
- 5.5
21-
- 5.4
22-
- 5.3
23-
os: [ubuntu-latest, ubuntu-22.04]
13+
operating-system: [ ubuntu-latest ]
14+
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' ]
15+
dependencies: [ 'locked' ]
16+
17+
name: PHP ${{ matrix.php }} on ${{ matrix.operating-system }} with ${{ matrix.dependencies }} dependencies
18+
2419
steps:
25-
- name: Checkout
26-
uses: actions/checkout@v4
20+
- uses: actions/checkout@v4
21+
name: Checkout repository
22+
2723
- name: Setup PHP
2824
uses: shivammathur/setup-php@v2
2925
with:
3026
php-version: ${{ matrix.php }}
31-
extensions: xdiff
32-
tools: composer, PEAR
33-
- name: Cache Composer packages
34-
id: composer-cache
35-
uses: actions/cache@v3
27+
coverage: none
28+
29+
- uses: ramsey/composer-install@v1
3630
with:
37-
path: vendor
38-
key: ${{ runner.os }}-php-${{ hashFiles('**/composer.lock') }}
39-
restore-keys: |
40-
${{ runner.os }}-php-
31+
dependency-versions: ${{ matrix.dependencies }}
32+
4133
- name: Run tests
42-
run: |-
43-
composer install
34+
run: |
4435
umask 0022
45-
if [ ${{ matrix.php }} == 5.3 ] ; then
46-
pear run-tests -r tests
47-
else
48-
pear run-tests -d -r tests
49-
fi
36+
sudo pear run-tests --ini=" -d include_path=.:/usr/share/php" -q -d -r ./tests
5037
pear package package.xml
38+
composer install
5139
composer validate

0 commit comments

Comments
 (0)