diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 0000000..135099c --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,32 @@ +name: CI + +on: [push, pull_request] + +jobs: + tests: + runs-on: ubuntu-latest + + strategy: + matrix: + php: [5.6, 7.0, 7.1, 7.2, 7.3, 7.4] + + steps: + - name: Checkout code + uses: actions/checkout@v2 + + - name: Setup PHP + uses: shivammathur/setup-php@v2 + with: + php-version: ${{ matrix.php }} + coverage: none + + - name: Validate composer.json and composer.lock + run: composer validate + + - name: Install dependencies + run: | + composer require phpunit/phpunit "<=8.5.2" --no-update --ignore-platform-reqs + composer install --prefer-dist --no-progress --no-interaction --no-suggest + + - name: Run test suite + run: php vendor/bin/codecept run diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 05e9495..0000000 --- a/.travis.yml +++ /dev/null @@ -1,20 +0,0 @@ -language: php - -php: - - 5.6 - - 7.0 - - 7.1 - - 7.2 - - 7.3 - -# faster builds on new travis setup not using sudo -sudo: false - -install: - - '[[ -z "$CI_USER_TOKEN" ]] || composer config github-oauth.github.com ${CI_USER_TOKEN};' - - COMPOSER_MEMORY_LIMIT=-1 composer self-update && composer --version - - COMPOSER_MEMORY_LIMIT=-1 composer update --prefer-dist --no-interaction - - php ./vendor/bin/codecept build - -script: - - php ./vendor/bin/codecept run diff --git a/composer.json b/composer.json index 0f869fc..cc4b796 100644 --- a/composer.json +++ b/composer.json @@ -14,7 +14,6 @@ } ], "minimum-stability": "RC", - "require": { "php": ">=5.6.0 <8.0", "codeception/lib-asserts": "^1.12.0", diff --git a/readme.md b/readme.md index 808ab11..bbcf9b7 100644 --- a/readme.md +++ b/readme.md @@ -1,6 +1,6 @@ # Codeception module containing various assertions -[![Build Status](https://travis-ci.org/Codeception/module-asserts.svg?branch=master)](https://travis-ci.org/Codeception/module-asserts) +![Build Status](https://github.com/Codeception/module-asserts/workflows/CI/badge.svg) ## Installation