From a2ba6c34f929063895a6cfdffa448067f5c1b963 Mon Sep 17 00:00:00 2001 From: Jeroen van den Enden Date: Thu, 24 Oct 2019 06:45:33 +0000 Subject: [PATCH] Add workflow --- .github/workflows/CI.yml | 17 +++++++++++++++++ .travis.yml | 28 ---------------------------- 2 files changed, 17 insertions(+), 28 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..c27af2f --- /dev/null +++ b/.github/workflows/CI.yml @@ -0,0 +1,17 @@ +name: CI + +on: [push] + +jobs: + build: + runs-on: ubuntu-latest + strategy: + matrix: + php-versions: ['7.2', '7.3'] + steps: + - uses: actions/checkout@v1 + - name: Run tests + run: | + curl -sS https://getcomposer.org/installer | php -- --filename=composer + composer install --no-interaction --prefer-source + vendor/bin/test diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 9264c8f..0000000 --- a/.travis.yml +++ /dev/null @@ -1,28 +0,0 @@ -language: php - -php: - - '7.2' - - '7.3' - - '7.4snapshot' - -matrix: - fast_finish: true - allow_failures: - - php: '7.4snapshot' - -env: - - COMPOSER_FLAGS="--prefer-lowest" - - COMPOSER_FLAGS="" - -before_install: - - curl -sS https://getcomposer.org/installer | php -- --filename=composer - -install: - - composer update --no-interaction --prefer-source $COMPOSER_FLAGS - -script: - - vendor/bin/test - -notifications: - email: - - info@endroid.nl