diff --git a/.github/workflows/run-tests.yml b/.github/workflows/run-tests.yml new file mode 100644 index 0000000..616b050 --- /dev/null +++ b/.github/workflows/run-tests.yml @@ -0,0 +1,25 @@ +name: "Run Tests" + +on: [push, pull_request] + +jobs: + build: + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v1 + + - name: Validate composer.json and composer.lock + run: composer validate + + - name: Install dependencies + run: composer install --prefer-dist --no-progress --no-suggest + + - name: Run test suite + run: vendor/bin/phpunit + + - name: Run PHPCS tests + run: | + vendor/bin/phpcs src --standard=PSR2 + vendor/bin/phpcs tests/Unit --standard=PSR2 diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 8905453..0000000 --- a/.travis.yml +++ /dev/null @@ -1,25 +0,0 @@ -language: php - -sudo: false - -cache: - directories: - - $HOME/.composer/cache - -php: - - 7.2 - - 7.3 - - 7.4 - -before_install: - - composer self-update - -install: - - composer install - -script: - - vendor/bin/phpunit - - vendor/bin/phpcs src --standard=PSR2 - - vendor/bin/phpcs tests/Unit --standard=PSR2 - -