diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..aaa48d2 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,38 @@ +name: CI + +on: + push: + pull_request: + +jobs: + PHPUnit: + runs-on: ubuntu-latest + strategy: + matrix: + php: + - 7.2 + - 7.1 + - 7.0 + - 5.6 + - 5.5 + - 5.4 + - 5.3 + steps: + - uses: actions/checkout@v2 + - name: Setup PHP + uses: shivammathur/setup-php@v2 + with: + php-version: ${{ matrix.php }} + - run: composer install + - run: vendor/bin/phpunit --coverage-text + + PHPUnit-hhvm: + name: PHPUnit (HHVM) + runs-on: ubuntu-18.04 + steps: + - uses: actions/checkout@v2 + - uses: azjezz/setup-hhvm@v1 + with: + version: lts-3.30 + - run: hhvm $(which composer) install + - run: hhvm vendor/bin/phpunit \ No newline at end of file diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 41921e3..0000000 --- a/.travis.yml +++ /dev/null @@ -1,29 +0,0 @@ -language: php - -php: -# - 5.3 # requires old distro, see below - - 5.4 - - 5.5 - - 5.6 - - 7.0 - - 7.1 - - 7.2 - - hhvm # ignore errors, see below - -# lock distro so new future defaults will not break the build -dist: trusty - -matrix: - include: - - php: 5.3 - dist: precise - allow_failures: - - php: hhvm - -sudo: false - -install: - - composer install --no-interaction - -script: - - vendor/bin/phpunit --coverage-text diff --git a/README.md b/README.md index dbf657d..e622641 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,6 @@ -# clue/commander [![Build Status](https://travis-ci.org/clue/php-commander.svg?branch=master)](https://travis-ci.org/clue/php-commander) +# clue/commander + +[![CI status](https://github.com/clue/php-commander/workflows/CI/badge.svg)](https://github.com/clue/php-commander/actions) Finally a sane way to register available commands and arguments and match your command line in PHP.