-
Notifications
You must be signed in to change notification settings - Fork 5
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 #14 from matsuo/github-actions
Migrate CI from Travis CI to GitHub Actions
- Loading branch information
Showing
4 changed files
with
54 additions
and
29 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 |
---|---|---|
@@ -0,0 +1,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 |
This file was deleted.
Oops, something went wrong.
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
Empty file.