Skip to content

Merge pull request #14 from matsuo/github-actions #1

Merge pull request #14 from matsuo/github-actions

Merge pull request #14 from matsuo/github-actions #1

Workflow file for this run

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