diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 0000000..680aa29 --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,27 @@ +name: Tests +on: + pull_request: + branches: [master] + push: + branches: [master] + +jobs: + verify: + runs-on: ubuntu-latest + strategy: + matrix: + php: + - '7.1' + - '7.2' + - '7.3' + - '7.4' + - '8.0' + fail-fast: false + steps: + - uses: actions/checkout@v2 + - uses: shivammathur/setup-php@v2 + with: + php-version: ${{ matrix.php }} + coverage: none + - run: composer install --no-interaction + - run: composer run verify diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 1628152..0000000 --- a/.travis.yml +++ /dev/null @@ -1,13 +0,0 @@ -language: php - -php: -- 7.1 -- 7.2 -- 7.3 -- 7.4 - -before_script: -- composer selfupdate -- composer install - -script: composer run verify diff --git a/composer.json b/composer.json index 5cb534d..3c621b0 100644 --- a/composer.json +++ b/composer.json @@ -7,7 +7,7 @@ "test": "vendor/bin/phpstan analyse -c tests/phpstan-config.neon --error-format oneline --no-progress --no-interaction" }, "require": { - "php": "^7.1", + "php": "^7.1 || ^8.0", "phpstan/phpstan": "^0.12" }, "license": "MIT",