diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS new file mode 100644 index 0000000..df3111f --- /dev/null +++ b/.github/CODEOWNERS @@ -0,0 +1 @@ +* @BedrockStreaming/cache-db diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..ad8187c --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,19 @@ +name: Continuous Integration +on: [push] + +jobs: + tests: + name: Tests + runs-on: ubuntu-20.04 + strategy: + matrix: + version: [ '7.1', '7.2', '7.3', '7.4', '8.0', '8.1' ] + fail-fast: false + steps: + - uses: actions/checkout@master + - uses: shivammathur/setup-php@v2 + with: + php-version: ${{ matrix.version }} + coverage: xdebug2 + - run: composer install --dev ${{ matrix.flags }} + - run: vendor/bin/atoum diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 486041d..0000000 --- a/.travis.yml +++ /dev/null @@ -1,13 +0,0 @@ -language: php - -php: - - 7.1 - - 7.2 - - 7.3 - -before_script: - - wget http://getcomposer.org/composer.phar - - php composer.phar install --dev - -script: - - vendor/bin/atoum diff --git a/README.md b/README.md index 3061c49..d3288a1 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# Redis PHP Mock [![Build Status](https://secure.travis-ci.org/M6Web/RedisMock.svg?branch=master)](http://travis-ci.org/M6Web/RedisMock) [![Total Downloads](https://poser.pugx.org/m6web/redis-mock/downloads.svg)](https://packagist.org/packages/m6web/redis-mock) +# Redis PHP Mock [![Build Status](https://github.com/BedrockStreaming/RedisMock/actions/workflows/ci.yml/badge.svg)](https://github.com/BedrockStreaming/RedisMock/actions/workflows/ci.yml) [![Total Downloads](https://poser.pugx.org/m6web/redis-mock/downloads.svg)](https://packagist.org/packages/m6web/redis-mock) PHP 7.1 library providing a Redis PHP mock for your tests. diff --git a/composer.json b/composer.json index 7007db0..cdf2149 100644 --- a/composer.json +++ b/composer.json @@ -18,7 +18,7 @@ "php": ">=7.1.0" }, "require-dev": { - "atoum/atoum": "master-dev", + "atoum/atoum": "~3.4||~4.0", "predis/predis": "~1.1" } } diff --git a/tests/units/RedisMock.php b/tests/units/RedisMock.php index 87230b6..7c14a7d 100644 --- a/tests/units/RedisMock.php +++ b/tests/units/RedisMock.php @@ -2,13 +2,13 @@ namespace M6Web\Component\RedisMock\tests\units; -use mageekguy\atoum\test; +use atoum; use M6Web\Component\RedisMock\RedisMock as Redis; /** * Redis mock test */ -class RedisMock extends test +class RedisMock extends atoum { public function testSetGetDelExists() { diff --git a/tests/units/RedisMockFactory.php b/tests/units/RedisMockFactory.php index 4e20297..4cca61b 100644 --- a/tests/units/RedisMockFactory.php +++ b/tests/units/RedisMockFactory.php @@ -4,12 +4,12 @@ use M6Web\Component\RedisMock\RedisMockFactory as Factory; use M6Web\Component\RedisMock\RedisMock as Mock; -use mageekguy\atoum\test; +use atoum; /** * Test class for RedisMockFactory */ -class RedisMockFactory extends test +class RedisMockFactory extends atoum { /**