Skip to content

Commit

Permalink
Merge pull request web-token#293 from web-token/PHP8
Browse files Browse the repository at this point in the history
Php8
  • Loading branch information
Spomky authored Jan 9, 2021
2 parents 3656244 + 60463ef commit c7aee71
Show file tree
Hide file tree
Showing 332 changed files with 765 additions and 1,577 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/bc-break-test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Backwards compatibility verification

on:
pull_request:

jobs:
bc-check:
runs-on: ${{ matrix.operating-system }}
strategy:
matrix:
operating-system: [ ubuntu-latest ]
php-versions: [ '7.4' ]
name: PHP ${{ matrix.php-versions }} Test on ${{ matrix.operating-system }}

steps:
- name: Checkout
uses: actions/checkout@v2

- name: Fetch tags
run: git fetch --depth=1 origin +refs/tags/*:refs/tags/*

- name: BC Break verification
uses: docker://nyholm/roave-bc-check-ga
32 changes: 32 additions & 0 deletions .github/workflows/coding-standards.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Coding Standards

on: [push]

jobs:
tests:
runs-on: ${{ matrix.operating-system }}
strategy:
matrix:
operating-system: [ubuntu-latest]
php-versions: ['7.4']
name: PHP ${{ matrix.php-versions }} Test on ${{ matrix.operating-system }}

steps:
- name: Checkout
uses: actions/checkout@v2
with:
ref: ${{ github.head_ref }}

- name: Setup PHP, with composer and extensions
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-versions }}
extensions: json, mbstring, openssl
coverage: xdebug

- name: Install Composer dependencies
run: |
composer update --no-progress --no-suggest --prefer-dist --optimize-autoloader
- name: PHP-CS-FIXER
run: composer test:syntax
34 changes: 34 additions & 0 deletions .github/workflows/functional-tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Functional Tests

on: [push]

jobs:
tests:
runs-on: ${{ matrix.operating-system }}
strategy:
matrix:
operating-system: [ubuntu-latest]
php-versions: ['7.2', '7.3', '7.4', '8.0']
name: PHP ${{ matrix.php-versions }} Test on ${{ matrix.operating-system }}

steps:
- uses: actions/checkout@v2
with:
ref: ${{ github.head_ref }}

- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-versions }}
extensions: json, mbstring, openssl
coverage: xdebug

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

- name: Install dependencies
run: |
composer update --no-progress --no-suggest --prefer-dist --optimize-autoloader
- name: Run tests
run: vendor/bin/phpunit -c phpunit.xml.dist --group=functional
32 changes: 32 additions & 0 deletions .github/workflows/lowest-version-tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Lowest versions tests

on: [push]

jobs:
tests:
runs-on: ${{ matrix.operating-system }}
strategy:
matrix:
operating-system: [ ubuntu-latest ]
php-versions: ['7.2', '7.3', '7.4', '8.0']
name: PHP ${{ matrix.php-versions }} Test on ${{ matrix.operating-system }}

steps:
- name: Checkout
uses: actions/checkout@v2
with:
ref: ${{ github.head_ref }}

- name: Setup PHP, with composer and extensions
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-versions }}
extensions: json, mbstring, openssl
coverage: xdebug

- name: Install Composer dependencies
run: |
composer update --no-progress --no-suggest --optimize-autoloader --prefer-lowest
- name: Run tests
run: vendor/bin/phpunit -c phpunit.xml.dist --coverage-text --group=Unit
35 changes: 35 additions & 0 deletions .github/workflows/mutation-tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Mutation Testing

on: [push]

jobs:
tests:
runs-on: ${{ matrix.operating-system }}
strategy:
matrix:
operating-system: [ubuntu-latest]
php-versions: ['7.4']
name: PHP ${{ matrix.php-versions }} Test on ${{ matrix.operating-system }}

steps:
- name: Checkout
uses: actions/checkout@v2
with:
ref: ${{ github.head_ref }}

- name: Setup PHP, with composer and extensions
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-versions }}
extensions: json, mbstring, openssl
coverage: xdebug

- name: Install Composer dependencies
run: |
composer update --no-progress --no-suggest --prefer-dist --optimize-autoloader
- name: Fetch Git base reference
run: git fetch --depth=1 origin $GITHUB_BASE_REF

- name: Infection
run: ./vendor/bin/infection --logger-github --git-diff-filter=AM -s --threads=$(nproc) --min-msi=0 --min-covered-msi=0
35 changes: 35 additions & 0 deletions .github/workflows/security.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Security

on: [push]

jobs:
tests:
runs-on: ${{ matrix.operating-system }}
strategy:
matrix:
operating-system: [ubuntu-latest]
php-versions: ['7.4']
name: PHP ${{ matrix.php-versions }} Test on ${{ matrix.operating-system }}

steps:
- name: Checkout
uses: actions/checkout@v2
with:
ref: ${{ github.head_ref }}

- name: Setup PHP, with composer and extensions
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-versions }}
extensions: json, mbstring, openssl
coverage: xdebug

- name: Install Composer dependencies
run: |
composer update --no-progress --no-suggest --prefer-dist --optimize-autoloader
- name: Security Check
run: |
wget -c https://get.sensiolabs.org/security-checker.phar
chmod +x security-checker.phar
./security-checker.phar security:check
32 changes: 32 additions & 0 deletions .github/workflows/static-analyze.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Static Analyze

on: [push]

jobs:
tests:
runs-on: ${{ matrix.operating-system }}
strategy:
matrix:
operating-system: [ubuntu-latest]
php-versions: ['7.4']
name: PHP ${{ matrix.php-versions }} Test on ${{ matrix.operating-system }}

steps:
- name: Checkout
uses: actions/checkout@v2
with:
ref: ${{ github.head_ref }}

- name: Setup PHP, with composer and extensions
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-versions }}
extensions: json, mbstring, openssl
coverage: xdebug

- name: Install Composer dependencies
run: |
composer update --no-progress --no-suggest --prefer-dist --optimize-autoloader
- name: PHPStan
run: composer test:typing
32 changes: 32 additions & 0 deletions .github/workflows/unit-tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Unit Tests

on: [push]

jobs:
tests:
runs-on: ${{ matrix.operating-system }}
strategy:
matrix:
operating-system: [ ubuntu-latest ]
php-versions: ['7.2', '7.3', '7.4', '8.0']
name: PHP ${{ matrix.php-versions }} Test on ${{ matrix.operating-system }}

steps:
- name: Checkout
uses: actions/checkout@v2
with:
ref: ${{ github.head_ref }}

- name: Setup PHP, with composer and extensions
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-versions }}
extensions: json, mbstring, openssl
coverage: xdebug

- name: Install Composer dependencies
run: |
composer update --no-progress --no-suggest --prefer-dist --optimize-autoloader
- name: Run tests
run: vendor/bin/phpunit -c phpunit.xml.dist --group=unit
20 changes: 0 additions & 20 deletions .scrutinizer.yml

This file was deleted.

69 changes: 0 additions & 69 deletions .travis.yml

This file was deleted.

21 changes: 16 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,19 @@
PHP JWT Framework
=================

[![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/web-token/jwt-framework/badges/quality-score.png?b=v2.1)](https://scrutinizer-ci.com/g/web-token/jwt-framework/?branch=v2.1)
[![Coverage Status](https://coveralls.io/repos/github/web-token/jwt-framework/badge.svg?branch=v2.1)](https://coveralls.io/github/web-token/jwt-framework?branch=v2.1)
![Build Status](https://github.com/web-token/jwt-framework/workflows/Coding%20Standards/badge.svg)
![Build Status](https://github.com/web-token/jwt-framework/workflows/Static%20Analyze/badge.svg)
![Build Status](https://github.com/web-token/jwt-framework/workflows/Security/badge.svg)

[![Build Status](https://travis-ci.org/web-token/jwt-framework.svg?branch=v2.1)](https://travis-ci.org/web-token/jwt-framework)
![Build Status](https://github.com/web-token/jwt-framework/workflows/Backwards%20compatibility%20verification/badge.svg)

[![SensioLabsInsight](https://insight.sensiolabs.com/projects/b7efa68f-8962-41cf-a2e3-4444426bc95a/big.png)](https://insight.sensiolabs.com/projects/b7efa68f-8962-41cf-a2e3-4444426bc95a)
![Build Status](https://github.com/web-token/jwt-framework/workflows/Unit%20Tests/badge.svg)
![Build Status](https://github.com/web-token/jwt-framework/workflows/Functional%20Tests/badge.svg)
![Build Status](https://github.com/web-token/jwt-framework/workflows/Lowest%20versions%20tests/badge.svg)

![Build Status](https://github.com/web-token/jwt-framework/workflows/Mutation%20Testing/badge.svg)

[![Coverage Status](https://coveralls.io/repos/github/web-token/jwt-framework/badge.svg)](https://coveralls.io/github/web-token/jwt-framework)

[![Latest Stable Version](https://poser.pugx.org/web-token/jwt-framework/v/stable.png)](https://packagist.org/packages/web-token/jwt-framework)
[![Total Downloads](https://poser.pugx.org/web-token/jwt-framework/downloads.png)](https://packagist.org/packages/web-token/jwt-framework)
Expand All @@ -21,7 +28,11 @@ The official documentation is available as https://web-token.spomky-labs.com/

I bring solutions to your problems and answer your questions.

If you really love that project and the work I have done or if you want I prioritize your issues, then you can help me out for a couple of :beers: or more!
If you really love that project, and the work I have done or if you want I prioritize your issues, then you can help me out for a couple of :beers: or more!

[Become a sponsor](https://github.com/sponsors/Spomky)

Or

[![Become a Patreon](https://c5.patreon.com/external/logo/become_a_patron_button.png)](https://www.patreon.com/FlorentMorselli)

Expand Down
Loading

0 comments on commit c7aee71

Please sign in to comment.