diff --git a/.gitattributes b/.gitattributes index 4e79598..7d0fb27 100644 --- a/.gitattributes +++ b/.gitattributes @@ -3,7 +3,7 @@ # Ignore all test and documentation with "export-ignore". /.gitattributes export-ignore +/.github export-ignore /.gitignore export-ignore -/.travis.yml export-ignore /phpunit.xml.dist export-ignore /tests export-ignore diff --git a/.github/workflows/run-tests.yml b/.github/workflows/run-tests.yml index 8c5c937..b2817ee 100644 --- a/.github/workflows/run-tests.yml +++ b/.github/workflows/run-tests.yml @@ -1,8 +1,12 @@ +name: Tests + on: [push, pull_request] jobs: php-tests: runs-on: ubuntu-latest + env: + COMPOSER_NO_INTERACTION: 1 strategy: matrix: @@ -57,12 +61,32 @@ jobs: - name: Install dependencies run: | - composer remove phpro/grumphp vimeo/psalm --no-interaction --no-update --dev - composer require "laravel/framework:${{ matrix.laravel }}" "orchestra/testbench:${{ matrix.testbench }}" --no-interaction --no-update --no-progress - composer update --${{ matrix.dependency-version }} --prefer-dist --no-interaction --no-suggest + composer remove phpro/grumphp vimeo/psalm --no-update --dev + composer require "laravel/framework:${{ matrix.laravel }}" "orchestra/testbench:${{ matrix.testbench }}" --no-update --no-progress + composer update --${{ matrix.dependency-version }} --prefer-dist --no-suggest --no-progress - name: Execute Unit Tests - run: vendor/bin/phpunit + run: composer test - - name: Check PSR-12 Codestyle - run: vendor/bin/phpcs --standard=psr2 src/ + check-style: + name: Check Code Style + runs-on: ubuntu-latest + env: + COMPOSER_NO_INTERACTION: 1 + + steps: + - name: Checkout code + uses: actions/checkout@v2 + + - name: Setup PHP + uses: shivammathur/setup-php@v2 + with: + php-version: 7.4 + coverage: none + + - name: Install dependencies + run: | + composer remove phpro/grumphp vimeo/psalm --no-update --dev + composer update --prefer-dist --no-suggest --no-progress + + - run: composer check-style diff --git a/README.md b/README.md index cff76d6..9cc67bc 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,6 @@ [![Latest Version on Packagist][ico-version]][link-packagist] [![Software License][ico-license]](LICENSE.md) -[![Build Status][ico-travis]][link-travis] [![Total Downloads][ico-downloads]][link-downloads] **Complete PHPDocs, directly from the source** @@ -299,8 +298,6 @@ The Laravel IDE Helper Generator is open-sourced software licensed under the [MI [ico-version]: https://img.shields.io/packagist/v/barryvdh/laravel-ide-helper.svg?style=flat-square [ico-license]: https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat-square -[ico-travis]: https://img.shields.io/travis/barryvdh/laravel-ide-helper/master.svg?style=flat-square [ico-downloads]: https://img.shields.io/packagist/dt/barryvdh/laravel-ide-helper.svg?style=flat-square [link-packagist]: https://packagist.org/packages/barryvdh/laravel-ide-helper -[link-travis]: https://travis-ci.org/barryvdh/laravel-ide-helper [link-downloads]: https://packagist.org/packages/barryvdh/laravel-ide-helper