diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..a22124e --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,31 @@ +on: + - pull_request + - push + +name: CI + +jobs: + run: + name: Tests + + strategy: + matrix: + operating-system: [ubuntu-latest] + php-versions: ['5.3', '5.4', '5.5', '5.6', '7.0', '7.1', '7.2', '7.3', '7.4', '8.0', '8.1', '8.2'] + + runs-on: ${{ matrix.operating-system }} + + steps: + - name: Checkout + uses: actions/checkout@v3 + + - name: Install PHP + uses: shivammathur/setup-php@v2 + with: + php-version: ${{ matrix.php-versions }} + + - name: Install dependencies with composer + run: composer install + + - name: Run tests + run: ./vendor/bin/phpunit diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 7e85a3d..0000000 --- a/.travis.yml +++ /dev/null @@ -1,23 +0,0 @@ -language: php -sudo: false -dist: precise - -php: - - 5.3 - - 5.4 - - 5.5 - - 5.6 - - 7.0 - - 7.1 - - 7.2 - - 7.3 - - nightly - - hhvm - -matrix: - allow_failures: - - php: nightly - - php: hhvm - -install: composer install -script: vendor/bin/phpunit --coverage-clover=coverage.clover diff --git a/composer.json b/composer.json index 9256936..dda72f0 100644 --- a/composer.json +++ b/composer.json @@ -20,8 +20,11 @@ "homepage": "http://github.com/henderjon" } ], + "require": { + "php" : ">=5.3.0" + }, "require-dev": { - "phpunit/phpunit": "~4.1" + "phpunit/phpunit": "~4.8|~9" }, "autoload" : { "files": ["src/array.php"] diff --git a/test/ArrayFunctionsTest.php b/test/ArrayFunctionsTest.php index db4e107..7ebb6dd 100644 --- a/test/ArrayFunctionsTest.php +++ b/test/ArrayFunctionsTest.php @@ -1,6 +1,6 @@ assertEquals( @@ -53,4 +53,3 @@ public function testArrayKeyRefill() { } - \ No newline at end of file