diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml new file mode 100644 index 0000000..17d05c6 --- /dev/null +++ b/.github/workflows/tests.yml @@ -0,0 +1,35 @@ +name: tests + +on: + push: + branches: + - master + pull_request: + branches: + - master + workflow_dispatch: + +jobs: + php: + runs-on: ubuntu-latest + + strategy: + matrix: + php: [7.4, 8.0, 8.1, 8.2] + dependency-version: [prefer-lowest, prefer-stable] + + steps: + - name: checkout code + uses: actions/checkout@v4 + + - name: setup PHP + uses: shivammathur/setup-php@v2 + with: + php-version: ${{ matrix.php }} + coverage: xdebug + + - name: install dependencies + run: composer update --${{ matrix.dependency-version }} + + - name: run tests + run: php vendor/bin/phpunit diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 0500493..0000000 --- a/.travis.yml +++ /dev/null @@ -1,30 +0,0 @@ -language: php - -php: - - 5.6 - - 7.0 - - 7.2 - -env: - - SYMFONY_VERSION=2.8.* - - SYMFONY_VERSION=3.4.* - - SYMFONY_VERSION=^4 - - SYMFONY_VERSION=dev-master - -before_script: - - COMPOSER_MEMORY_LIMIT=-1 travis_retry composer require symfony/framework-bundle:${SYMFONY_VERSION} --prefer-dist --no-interaction - -script: vendor/bin/phpunit - -matrix: - allow_failures: - - env: SYMFONY_VERSION=dev-master - exclude: - - env: SYMFONY_VERSION=dev-master - php: 5.6 - - env: SYMFONY_VERSION=dev-master - php: 7.0 - - env: SYMFONY_VERSION=^4 - php: 5.6 - - env: SYMFONY_VERSION=^4 - php: 7.0