diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..869334f --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,41 @@ +name: "Continuous Integration" + +on: + - push + - pull_request + +env: + COMPOSER_FLAGS: "--no-interaction --prefer-dist" + +jobs: + tests: + name: "CI" + + runs-on: ubuntu-latest + + strategy: + matrix: + php-version: + - "7.2" + - "7.3" + - "7.4" + - "8.0" + + dependencies: [highest] + + steps: + - name: "Checkout" + uses: "actions/checkout@v2" + + - name: "Setup PHP" + uses: "shivammathur/setup-php@v2" + with: + coverage: "none" + php-version: "${{ matrix.php-version }}" + + - name: "Install dependencies" + run: | + composer update ${{ env.COMPOSER_FLAGS }} + + - name: "Run tests" + run: "composer exec phpunit -- --verbose" diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index fb7f94c..0000000 --- a/.travis.yml +++ /dev/null @@ -1,11 +0,0 @@ -language: php -php: - - 7.0 - - 7.1 - - 7.2 - - 7.3 - - 7.4 - -before_script: composer install --no-interaction --prefer-source -script: - - vendor/bin/phpunit --coverage-text --verbose diff --git a/composer.json b/composer.json index dffb9cb..9ff9b8e 100644 --- a/composer.json +++ b/composer.json @@ -13,11 +13,11 @@ } ], "require": { - "psr/log": "1.*", - "php": ">=5.3.2" + "psr/log": "^1.0.1", + "php": ">=7.2" }, "require-dev": { - "phpunit/phpunit": "^4.8.36 || ^5.7 || ^6.5" + "phpunit/phpunit": "^8.5" }, "autoload": { "psr-0": {