diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml new file mode 100644 index 0000000..75e5950 --- /dev/null +++ b/.github/workflows/lint.yml @@ -0,0 +1,16 @@ +name: "Linter" + +on: + pull_request: + + push: + branches: [ "*" ] + +jobs: + lint: + name: "Linter" + uses: contributte/.github/.github/workflows/php.yml@v1 + with: + name: "Linter" + run: "vendor/bin/parallel-lint src" + php: "8.0" diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 69971d5..0000000 --- a/.travis.yml +++ /dev/null @@ -1,57 +0,0 @@ -language: php -php: - - 5.6 - - 7.0 - - 7.1 - - 7.2 - - 7.3 - - 7.4 - - 8.0 - - 8.1 - -before_install: - # turn off XDebug - - phpenv config-rm xdebug.ini || return 0 - -install: - # Composer - - travis_retry composer install --no-progress --prefer-dist - -script: - # Linter - - composer run-script linter - -#jobs: -# include: -# - stage: Quality Assurance -# php: 7.1 -# script: -# - composer run-script qa -# -# - stage: Test Coverage -# php: 7.1 -# script: -# - composer run-script coverage -# after_script: -# - wget https://github.com/satooshi/php-coveralls/releases/download/v1.0.1/coveralls.phar -# - php coveralls.phar --verbose --config tests/.coveralls.yml -# -# - stage: Phpstan -# php: 7.1 -# script: -# - composer run-script phpstan-install -# - composer run-script phpstan -# -# allow_failures: -# - stage: Test Coverage -# - stage: Phpstan - -after_failure: - # Print *.actual content - - for i in $(find tests -name \*.actual); do echo "--- $i"; cat $i; echo; echo; done - -sudo: false - -cache: - directories: - - $HOME/.composer/cache diff --git a/composer.json b/composer.json index e3afd19..5b7196e 100644 --- a/composer.json +++ b/composer.json @@ -24,11 +24,6 @@ "autoload": { "classmap": ["src/"] }, - "scripts": { - "linter": [ - "parallel-lint src" - ] - }, "extra": { "branch-alias": { "dev-master": "0.10.x-dev",