From 48f7591388264b1def91ef7465d83182b0a12dc2 Mon Sep 17 00:00:00 2001 From: Jesse Donat Date: Thu, 8 Dec 2022 11:48:58 -0600 Subject: [PATCH 1/2] Replace Travis with GitHub actions --- .github/workflows/ci.yml | 31 +++++++++++++++++++++++++++++++ .travis.yml | 23 ----------------------- 2 files changed, 31 insertions(+), 23 deletions(-) create mode 100644 .github/workflows/ci.yml delete mode 100644 .travis.yml 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 From 6c0359999478abaa402f20d36fde36f075144343 Mon Sep 17 00:00:00 2001 From: Jesse Donat Date: Thu, 8 Dec 2022 11:50:37 -0600 Subject: [PATCH 2/2] Update composer --- composer.json | 5 ++++- test/ArrayFunctionsTest.php | 3 +-- 2 files changed, 5 insertions(+), 3 deletions(-) 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