-
Notifications
You must be signed in to change notification settings - Fork 5
52 lines (49 loc) · 1.63 KB
/
ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
name: Test
on:
push:
branches:
- "*"
pull_request:
branches: [ 'master' ]
jobs:
test:
name: Test
runs-on: ubuntu-latest
strategy:
matrix:
php-version: [ '5.4', '5.5', '5.6', '7.0', '7.1', '7.2', '7.3', '7.4', '8.0', '8.1', '8.2' ]
steps:
- uses: actions/checkout@v4
- name: Set up PHP ${{ matrix.php-version }}
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-version }}
- name: Prepare for GitHub Actions
shell: bash
run: |
pear config-set bin_dir /tmp/vendor/pear
pear config-set doc_dir /tmp/vendor/pear/docs
pear config-set ext_dir /tmp/vendor/pear/ext
pear config-set php_dir /tmp/vendor/pear/php
pear config-set cache_dir /tmp/vendor/pear/cache
pear config-set cfg_dir /tmp/vendor/pear/cfg
pear config-set data_dir /tmp/vendor/pear/data
pear config-set download_dir /tmp/vendor/pear/download
pear config-set temp_dir /tmp/vendor/pear/temp
pear config-set test_dir /tmp/vendor/pear/tests
pear config-set www_dir /tmp/vendor/pear/www
- name: Run tests
shell: bash
run: |
pear list
pear channel-update pear.php.net
pear upgrade --force pear/pear-1.10.1
pear list
pear install --force package.xml
pear list
pear package
pear package-validate
pear install --force *.tgz
pear list
composer install
./vendor/bin/phpunit -c phpunit.xml.dist