From befacf64593ac64123522ee08f4c24734b268644 Mon Sep 17 00:00:00 2001 From: Simon Frings Date: Fri, 18 Dec 2020 14:14:12 +0100 Subject: [PATCH] Use GitHub actions for continuous integration (CI) Bye bye Travis CI, you've served us well. --- .github/workflows/ci.yml | 34 ++++++++++++++++++++++++++++++++++ .travis.yml | 19 ------------------- README.md | 4 +++- 3 files changed, 37 insertions(+), 20 deletions(-) create mode 100644 .github/workflows/ci.yml delete mode 100644 .travis.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..03dce0a --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,34 @@ +name: CI + +on: + push: + pull_request: + +jobs: + PHPUnit: + runs-on: ubuntu-latest + strategy: + matrix: + php: + - 5.6 + - 5.3 + steps: + - uses: actions/checkout@v2 + - name: Setup PHP + uses: shivammathur/setup-php@v2 + with: + php-version: ${{ matrix.php }} + coverage: xdebug + - 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 diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 3d9d1e7..0000000 --- a/.travis.yml +++ /dev/null @@ -1,19 +0,0 @@ -language: php - -# lock distro so new future defaults will not break the build -dist: trusty - -jobs: - include: - - php: 5.3 - dist: precise - - php: 5.6 - - php: hhvm-3.18 - allow_failures: - - php: hhvm-3.18 - -install: - - composer install --prefer-source --no-interaction - -script: - - vendor/bin/phpunit --coverage-text diff --git a/README.md b/README.md index 9469148..eaea3cd 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,6 @@ -# clue/json-stream [![Build Status](https://travis-ci.org/clue/php-json-stream.svg?branch=master)](https://travis-ci.org/clue/php-json-stream) +# clue/json-stream + +[![CI status](https://github.com/clue/php-json-stream/workflows/CI/badge.svg)](https://github.com/clue/php-json-stream/actions) A really simple and lightweight, incremental parser for [JSON streaming](https://en.wikipedia.org/wiki/JSON_Streaming) (concatenated JSON and [line delimited JSON](https://en.wikipedia.org/wiki/Line_Delimited_JSON)), in PHP.