Skip to content

Commit

Permalink
Merge pull request #14 from matsuo/github-actions
Browse files Browse the repository at this point in the history
Migrate CI from Travis CI to GitHub Actions
  • Loading branch information
CloCkWeRX authored Jul 20, 2024
2 parents 2acddb5 + 331e640 commit a213fb9
Show file tree
Hide file tree
Showing 4 changed files with 54 additions and 29 deletions.
52 changes: 52 additions & 0 deletions .github/workflows/ci.yml
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
27 changes: 0 additions & 27 deletions .travis.yml

This file was deleted.

4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Auth_SASL2 - Abstraction of various SASL2 mechanism responses

[![Build Status](https://travis-ci.org/pear/Auth_SASL2.svg?branch=master)](https://travis-ci.org/pear/Auth_SASL2)
[![Test Status](https://github.com/pear/Auth_SASL2/actions/workflows/ci.yml/badge.svg)](https://github.com/pear/Auth_SASL2/actions/workflows/ci.yml)


Provides code to generate responses to common SASL2 mechanisms, including:
- Anonymous
Expand Down
Empty file added tests/.gitkeep
Empty file.

0 comments on commit a213fb9

Please sign in to comment.