diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml new file mode 100644 index 0000000..afd0154 --- /dev/null +++ b/.github/workflows/ci.yaml @@ -0,0 +1,33 @@ +name: 'CI' + +on: + - 'push' + - 'pull_request' + +jobs: + tests: + name: 'Validate fixtures' + + runs-on: 'ubuntu-latest' + + strategy: + matrix: + php_version: + - '7.1' + - '7.2' + - '7.3' + - '7.4' + + steps: + - name: 'Check out' + uses: 'actions/checkout@v4' + + - name: 'Set up PHP' + uses: 'shivammathur/setup-php@v2' + with: + php-version: '${{ matrix.php_version }}' + + - name: 'Install dependencies' + run: 'composer update' + + - run: 'php validate.php' diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 29893eb..0000000 --- a/.travis.yml +++ /dev/null @@ -1,27 +0,0 @@ -sudo: false - -language: php - -cache: - directories: - - $HOME/.composer/cache/files - -matrix: - fast_finish: true - include: - - php: 7.1 - env: COMPOSER_OPTIONS="--prefer-lowest --prefer-stable" - - php: 7.3 - - php: 7.2 - env: deps="high" - -before_install: - - phpenv config-rm xdebug.ini - - composer self-update - -install: - - if [ "$deps" = "high" ]; then composer config minimum-stability dev; fi - - composer update $COMPOSER_OPTIONS - -script: - - php validate.php