diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml new file mode 100644 index 0000000..a7644d6 --- /dev/null +++ b/.github/workflows/ci.yaml @@ -0,0 +1,27 @@ +name: ci + +on: [push] + +jobs: + testsuite: + strategy: + matrix: + php-versions: ['8.1'] + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v4 + + - name: Setup PHP + uses: shivammathur/setup-php@v2 + with: + php-version: ${{ matrix.php-version }} + extensions: mbstring, intl-72.1 + ini-values: zend.assertions = 1 + + - name: Install composer dependencies. + run: composer install --no-interaction --prefer-dist --optimize-autoloader + + - name: Run PHPUnit. + run: vendor/bin/phpunit diff --git a/.stickler.yml b/.stickler.yml deleted file mode 100644 index 2a4ce82..0000000 --- a/.stickler.yml +++ /dev/null @@ -1,3 +0,0 @@ -linters: - phpcs: - standard: CakePHP diff --git a/README.md b/README.md index 7ac8cf3..30d5518 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,3 @@ -[![Build Status](https://travis-ci.org/jeremyharris/cakephp-lazyload.svg?branch=master)](http://travis-ci.org/jeremyharris/cakephp-lazyload) -[![codecov](https://codecov.io/gh/jeremyharris/cakephp-lazyload/branch/master/graph/badge.svg)](https://codecov.io/gh/jeremyharris/cakephp-lazyload) [![Packagist](https://img.shields.io/packagist/dt/jeremyharris/cakephp-lazyload.svg)](https://packagist.org/packages/jeremyharris/cakephp-lazyload) [![license](https://img.shields.io/github/license/jeremyharris/cakephp-lazyload.svg)]() diff --git a/composer.json b/composer.json index 6d9fad1..6008f26 100644 --- a/composer.json +++ b/composer.json @@ -7,7 +7,6 @@ ], "require-dev": { "phpunit/phpunit": "^10", - "cakephp/cakephp-codesniffer": "^5.0", "cakephp/cakephp": "^5.0" }, "require": { @@ -25,10 +24,5 @@ "JeremyHarris\\LazyLoad\\TestApp\\": "tests/test_app", "Cake\\Test\\": "./vendor/cakephp/cakephp/tests" } - }, - "config": { - "allow-plugins": { - "dealerdirect/phpcodesniffer-composer-installer": true - } } }