Skip to content

Commit

Permalink
Merge pull request #30 from yabhq/feat/laravel-11-support
Browse files Browse the repository at this point in the history
Feat/laravel 11 support
  • Loading branch information
chrisblackwell authored Aug 26, 2024
2 parents e467ff2 + 0f536c4 commit 3988d0e
Show file tree
Hide file tree
Showing 15 changed files with 2,429 additions and 1,707 deletions.
33 changes: 0 additions & 33 deletions .circleci/config.yml

This file was deleted.

48 changes: 48 additions & 0 deletions .env.ci
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
APP_NAME="Flightdeck API"
APP_ENV=local
APP_KEY=
APP_DEBUG=true
APP_URL=http://localhost

LOG_CHANNEL=stack
LOG_DEPRECATIONS_CHANNEL=null
LOG_LEVEL=debug

DB_CONNECTION=sqlite
DB_DATABASE=test
DB_DATABASE=:memory:

SCOUT_DRIVER=collection

BROADCAST_DRIVER=log
CACHE_DRIVER=file
FILESYSTEM_DISK=local
QUEUE_CONNECTION=sync
SESSION_DRIVER=database
SESSION_LIFETIME=120

MEMCACHED_HOST=127.0.0.1

REDIS_HOST=127.0.0.1
REDIS_PASSWORD=null
REDIS_PORT=6379

MAIL_MAILER=smtp
MAIL_HOST=mailhog
MAIL_PORT=1025
MAIL_USERNAME=null
MAIL_PASSWORD=null
MAIL_ENCRYPTION=null
MAIL_FROM_ADDRESS="[email protected]"
MAIL_FROM_NAME="${APP_NAME}"

AWS_ACCESS_KEY_ID=
AWS_SECRET_ACCESS_KEY=
AWS_DEFAULT_REGION=us-east-1
AWS_BUCKET=
AWS_USE_PATH_STYLE_ENDPOINT=false

PUSHER_APP_ID=
PUSHER_APP_KEY=
PUSHER_APP_SECRET=
PUSHER_APP_CLUSTER=mt1
43 changes: 43 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: Tests

on:
pull_request:
branches: [master]

concurrency:
group: ci-${{ github.ref }}
cancel-in-progress: true

jobs:
phpunit:
runs-on: ubuntu-latest
services:
postgres:
image: postgres:13.2
env:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DB: test
ports:
- 5432:5432
options: --health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries 5
steps:
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: '8.2'

- uses: actions/checkout@v1
with:
fetch-depth: 1

- name: Install composer dependencies
run: |
composer install --no-scripts
- name: Prepare Laravel Application
run: |
cp .env.ci .env
- name: Run Testsuite
run: vendor/bin/phpunit tests/
19 changes: 0 additions & 19 deletions .scrutinizer.yml

This file was deleted.

12 changes: 6 additions & 6 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,14 @@
}
],
"require": {
"php": "^8.1",
"illuminate/support": "^9.0|^10.0",
"tymon/jwt-auth": "^2.0"
"php": "^8.2",
"illuminate/support": "^11.0",
"tymon/jwt-auth": "^2.1"
},
"require-dev": {
"laravel/legacy-factories": "^1.0",
"orchestra/testbench": "^8.0",
"phpunit/phpunit": "^9.0"
"laravel/legacy-factories": "^1.4",
"orchestra/testbench": "^9.4",
"phpunit/phpunit": "^11.0"
},
"autoload": {
"psr-4": {
Expand Down
Loading

0 comments on commit 3988d0e

Please sign in to comment.