diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 0000000..cde13bc --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,20 @@ +name: Test +on: + push: + +jobs: + test: + runs-on: ubuntu-latest + name: Test Github Action + steps: + - uses: actions/checkout@v3 + - name: Setup PHP with PECL extension + uses: shivammathur/setup-php@v2 + with: + php-version: '7.0' + - name: Setup composer + run: composer update --prefer-lowest + - name: lint + run: composer lint + - name: Run tests + run: composer test \ No newline at end of file diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 1736249..0000000 --- a/.travis.yml +++ /dev/null @@ -1,16 +0,0 @@ -language: php - -cache: - directories: - $HOME/.composer/cache/files - -php: - - 7.0 - -install: - - php -n ~/.phpenv/versions/$(phpenv version-name)/bin/composer self-update - - php -n ~/.phpenv/versions/$(phpenv version-name)/bin/composer update - -script: - - php -n ~/.phpenv/versions/$(phpenv version-name)/bin/composer lint - - ./vendor/bin/phpunit diff --git a/composer.json b/composer.json index dc93444..a3621ab 100644 --- a/composer.json +++ b/composer.json @@ -24,8 +24,8 @@ }, "scripts": { "test": "\"vendor/bin/phpunit\"", - "lint": "\"vendor/bin/phpcs\" --standard=vendor/vanio/coding-standards/ruleset.xml --extensions=php --encoding=utf-8 --ignore=vendor .", - "fix": "\"vendor/bin/phpcbf\" --standard=vendor/vanio/coding-standards/ruleset.xml --extensions=php --encoding=utf-8 --no-patch --ignore=vendor ." + "lint": "\"vendor/bin/phpcs\" --standard=vendor/vanio/coding-standards/ruleset.xml --extensions=php --encoding=utf-8 src", + "fix": "\"vendor/bin/phpcbf\" --standard=vendor/vanio/coding-standards/ruleset.xml --extensions=php --encoding=utf-8 --no-patch src" }, "extra": { "branch-alias": { diff --git a/src/ScriptHandler.php b/src/ScriptHandler.php index 4e83577..75b3b68 100644 --- a/src/ScriptHandler.php +++ b/src/ScriptHandler.php @@ -8,6 +8,7 @@ class ScriptHandler { + // @codingStandardsIgnoreLine public static function createSymlinks(Event $event, Filesystem $filesystem = null) { /** @var PackageInterface $package */