Skip to content

Commit

Permalink
Merge pull request #27 from vrajroham/php-8.0-support
Browse files Browse the repository at this point in the history
[WIP] PHP 8.0 support
  • Loading branch information
vrajroham authored Jul 9, 2021
2 parents 2ddd359 + b802dfb commit 6101ec3
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 5 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/php.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,3 +36,33 @@ jobs:

- name: Run test suite
run: composer run-script test

build_php_80:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2

- name: Setup PHP with PECL extension
uses: shivammathur/setup-php@v2
with:
php-version: '8.0'

- name: Validate composer.json and composer.lock
run: composer validate --strict

- name: Cache Composer packages
id: composer-cache
uses: actions/cache@v2
with:
path: vendor
key: ${{ runner.os }}-php-${{ hashFiles('**/composer.lock') }}
restore-keys: |
${{ runner.os }}-php-
- name: Install dependencies
run: composer install --prefer-dist --no-progress

- name: Run test suite
run: composer run-script test
9 changes: 4 additions & 5 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,11 @@
}
],
"require": {
"php": "^7.3",
"bitpay/sdk": "~4.0"
"php": ">=7.3 || ^8.0",
"bitpay/sdk": "~v5.2"
},
"require-dev": {
"phpunit/phpunit": ">=7.0"
"phpunit/phpunit": ">=9.5"
},
"autoload": {
"psr-4": {
Expand Down Expand Up @@ -49,6 +49,5 @@
"LaravelBitpay": "Vrajroham\\LaravelBitpay\\LaravelBitpayFacade"
}
}
},
"minimum-stability": "dev"
}
}

0 comments on commit 6101ec3

Please sign in to comment.