Skip to content

Commit

Permalink
Add php7.4, php8.0 support
Browse files Browse the repository at this point in the history
  • Loading branch information
LuborRod committed Oct 28, 2022
1 parent e1ca608 commit 4908a0a
Show file tree
Hide file tree
Showing 2 changed files with 54 additions and 2 deletions.
54 changes: 53 additions & 1 deletion .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ on: [ push, pull_request_target ]

jobs:
php8compat:
name: Unit Tests PHP8 Compatibility (php ${{ matrix.php-version }})
name: Unit Tests php8.1 (php ${{ matrix.php-version }})
runs-on: ubuntu-latest
# always run on push events
# only run on pull_request_target event when pull request pulls from fork repository
Expand Down Expand Up @@ -31,6 +31,58 @@ jobs:

- run: composer test

php7:
name: Unit Tests php7.4 (php ${{ matrix.php-version }})
runs-on: ubuntu-latest
# always run on push events
# only run on pull_request_target event when pull request pulls from fork repository
if: >
github.event_name == 'push' ||
github.event_name == 'pull_request_target' && github.event.pull_request.head.repo.full_name != github.repository
strategy:
fail-fast: false
matrix:
php-version: [ 7.4 ]

steps:
- uses: actions/checkout@v2

- uses: shivammathur/[email protected]
with:
php-version: ${{ matrix.php-version }}

- run: composer self-update

- run: composer install --no-interaction --prefer-source --dev

- run: composer test

php8.0:
name: Unit Tests php8.0 (php ${{ matrix.php-version }})
runs-on: ubuntu-latest
# always run on push events
# only run on pull_request_target event when pull request pulls from fork repository
if: >
github.event_name == 'push' ||
github.event_name == 'pull_request_target' && github.event.pull_request.head.repo.full_name != github.repository
strategy:
fail-fast: false
matrix:
php-version: [ 8.0 ]

steps:
- uses: actions/checkout@v2

- uses: shivammathur/[email protected]
with:
php-version: ${{ matrix.php-version }}

- run: composer self-update

- run: composer install --no-interaction --prefer-source --dev

- run: composer test

protobuf:
name: Unit Tests With Protobuf C Extension 3.13 (php ${{ matrix.php-version }})
runs-on: ubuntu-latest
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"homepage": "https://yoti.com",
"license": "MIT",
"require": {
"php": "^8.1",
"php": "^7.4 || ^8.0 || ^8.1",
"ext-json": "*",
"google/protobuf": "^3.10",
"phpseclib/phpseclib": "^3.0",
Expand Down

0 comments on commit 4908a0a

Please sign in to comment.