diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..44115b8 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,20 @@ +name: CI + +on: + pull_request: ~ + push: + branches: + - master + +jobs: + build: + runs-on: ubuntu-latest + container: + image: amaccis/php-libstemmer:2.0.0 + steps: + - name: Checkout + uses: actions/checkout@v2 + - name: Install dependencies + run: composer install + - name: Run tests + run: vendor/bin/phpunit \ No newline at end of file diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index ced9f73..0000000 --- a/.travis.yml +++ /dev/null @@ -1,13 +0,0 @@ -language: php - -services: - - docker - -before_install: - - docker run --name php-libstemmer -d -v $PWD:/var/www amaccis/php-libstemmer:2.0.0 - -install: - - docker exec php-libstemmer composer install - -script: - - docker exec php-libstemmer ./vendor/bin/phpunit diff --git a/README.md b/README.md index 0062797..0587d4b 100644 --- a/README.md +++ b/README.md @@ -1,8 +1,7 @@ # php-stemmer [![PHP Version](https://img.shields.io/badge/php-%5E7.4-blue.svg)](https://img.shields.io/badge/php-%5E7.4-blue.svg) -[![Build Status](https://travis-ci.org/amaccis/php-stemmer.svg?branch=master)](https://travis-ci.org/amaccis/php-stemmer) - +![CI](https://github.com/amaccis/php-stemmer/workflows/CI/badge.svg) ## What is PHP Stemmer? PHP Stemmer is a PHP interface to the stemming algorithms from the [Snowball project](https://snowballstem.org/), largely inspired by Richard Boulton's [PyStemmer](https://github.com/snowballstem/pystemmer). diff --git a/phpunit.xml b/phpunit.xml.dist similarity index 100% rename from phpunit.xml rename to phpunit.xml.dist