diff --git a/.gitattributes b/.gitattributes index ab9a2cea..9f9414b4 100644 --- a/.gitattributes +++ b/.gitattributes @@ -6,7 +6,6 @@ .gitattributes export-ignore .gitignore export-ignore .styleci.yml export-ignore -.travis.yml export-ignore CHANGELOG.md export-ignore phpunit.xml.dist export-ignore UPGRADE.md diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml new file mode 100644 index 00000000..0b24cf9e --- /dev/null +++ b/.github/workflows/tests.yml @@ -0,0 +1,42 @@ +name: tests + +on: + push: + pull_request: + schedule: + - cron: '0 0 * * *' + +jobs: + tests: + + runs-on: ubuntu-latest + strategy: + fail-fast: true + matrix: + php: [7.2, 7.3, 7.4] + laravel: [6.*, 7.*] + + name: P${{ matrix.php }} - L${{ matrix.laravel }} + + steps: + - name: Checkout code + uses: actions/checkout@v1 + + - name: Cache dependencies + uses: actions/cache@v1 + with: + path: ~/.composer/cache/files + key: dependencies-laravel-${{ matrix.laravel }}-php-${{ matrix.php }}-composer-${{ hashFiles('composer.json') }} + + - name: Setup PHP + uses: shivammathur/setup-php@v1 + with: + php-version: ${{ matrix.php }} + extension-csv: dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite, bcmath, soap, intl, gd, exif, iconv, imagick + coverage: none + + - name: Install dependencies + run: composer require "illuminate/contracts=${{ matrix.laravel }}" --prefer-dist --no-interaction --no-suggest + + - name: Execute tests + run: vendor/bin/phpunit --verbose diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index e70bb823..00000000 --- a/.travis.yml +++ /dev/null @@ -1,26 +0,0 @@ -dist: bionic -language: php - -php: - - 7.2 - - 7.3 - - 7.4 - -env: - matrix: - - LARAVEL=^6.0 - - LARAVEL=^7.0 - -matrix: - fast_finish: true - allow_failures: - - env: LARAVEL=^7.0 - -before_install: - - phpenv config-rm xdebug.ini || true - -install: - - travis_retry composer require "illuminate/contracts=${LARAVEL}" --dev --prefer-dist --no-interaction --no-suggest - -script: - - vendor/bin/phpunit --verbose diff --git a/README.md b/README.md index af6c766f..927b5d81 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@

-Build Status +Build Status Total Downloads Latest Stable Version License