Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PHP8 + Laravel 9 Support #30

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
37 changes: 18 additions & 19 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,24 +11,23 @@ jobs:
strategy:
fail-fast: false
matrix:
php: [ 7.3 ]
os: [ ubuntu-latest ]
php: [8.1]
os: [ubuntu-latest]

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

- name: Setup PHP
uses: shivammathur/setup-php@master
with:
php-version: ${{ matrix.php }}

- name: Install Dependencies
uses: php-actions/composer@master
with:
php_version: ${{ matrix.php }}

- name: PHP spec
uses: php-actions/phpspec@master
with:
config: phpspec.yml
- name: Checkout
uses: actions/checkout@master

- name: Setup PHP
uses: shivammathur/setup-php@master
with:
php-version: ${{ matrix.php }}

- name: Install Dependencies
uses: php-actions/composer@master
with:
version: latest
php_version: ${{ matrix.php }}

- name: Run PHP Spec
run: ./vendor/bin/phpspec run -c phpspec.yml
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM php:7.3-fpm-alpine
FROM php:8.1-fpm-alpine

# The following labels need to be set as part of the docker build process.
# org.opencontainers.image.created
Expand All @@ -17,7 +17,7 @@ COPY ./docker/installComposer.sh /tmp/installComposer.sh

RUN apk --no-cache --update add bash ca-certificates libpq postgresql-dev curl git curl git mysql-client unzip wget zip postgresql-client \
&& apk add --no-cache --virtual build-dependencies autoconf build-base g++ make \
&& pecl install redis xdebug \
&& pecl install redis xdebug-3.1.4 \
&& docker-php-ext-install bcmath opcache pdo_mysql pdo_pgsql pcntl \
&& docker-php-ext-enable bcmath opcache redis xdebug \
&& chmod +x /tmp/installComposer.sh \
Expand Down
63 changes: 34 additions & 29 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,34 +1,39 @@
{
"name": "generationtux/jwt-artisan",
"description": "JWT auth package for Laravel and Lumen",
"keywords": ["jwt", "auth", "laravel", "lumen"],
"license": "MIT",
"authors": [
{
"name": "Kyle Ferguson",
"email": "[email protected]"
},
{
"name": "Damien Russell",
"email": "[email protected]"
},
{
"name": "Thomas Manley",
"email": "[email protected]"
}
],
"minimum-stability": "stable",
"require": {
"firebase/php-jwt": "5.2.0",
"illuminate/http": "^6.0|^7.0|^8.0",
"illuminate/support": "^6.0|^7.0|^8.0"
"name": "generationtux/jwt-artisan",
"description": "JWT auth package for Laravel and Lumen",
"keywords": [
"jwt",
"auth",
"laravel",
"lumen"
],
"license": "MIT",
"authors": [
{
"name": "Kyle Ferguson",
"email": "[email protected]"
},
"require-dev": {
"phpspec/phpspec": "6.2.0"
{
"name": "Damien Russell",
"email": "[email protected]"
},
"autoload": {
"psr-4": {
"GenTux\\Jwt\\": "src/"
}
{
"name": "Thomas Manley",
"email": "[email protected]"
}
],
"minimum-stability": "stable",
"require": {
"firebase/php-jwt": "5.2.0",
"illuminate/http": "^6.0|^7.0|^8.0|^9.0",
"illuminate/support": "^6.0|^7.0|^8.0|^9.0"
},
"require-dev": {
"phpspec/phpspec": "7.3"
},
"autoload": {
"psr-4": {
"GenTux\\Jwt\\": "src/"
}
}
}
Loading