Skip to content

Commit 3988d0e

Browse files
Merge pull request #30 from yabhq/feat/laravel-11-support
Feat/laravel 11 support
2 parents e467ff2 + 0f536c4 commit 3988d0e

15 files changed

+2429
-1707
lines changed

.circleci/config.yml

Lines changed: 0 additions & 33 deletions
This file was deleted.

.env.ci

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
APP_NAME="Flightdeck API"
2+
APP_ENV=local
3+
APP_KEY=
4+
APP_DEBUG=true
5+
APP_URL=http://localhost
6+
7+
LOG_CHANNEL=stack
8+
LOG_DEPRECATIONS_CHANNEL=null
9+
LOG_LEVEL=debug
10+
11+
DB_CONNECTION=sqlite
12+
DB_DATABASE=test
13+
DB_DATABASE=:memory:
14+
15+
SCOUT_DRIVER=collection
16+
17+
BROADCAST_DRIVER=log
18+
CACHE_DRIVER=file
19+
FILESYSTEM_DISK=local
20+
QUEUE_CONNECTION=sync
21+
SESSION_DRIVER=database
22+
SESSION_LIFETIME=120
23+
24+
MEMCACHED_HOST=127.0.0.1
25+
26+
REDIS_HOST=127.0.0.1
27+
REDIS_PASSWORD=null
28+
REDIS_PORT=6379
29+
30+
MAIL_MAILER=smtp
31+
MAIL_HOST=mailhog
32+
MAIL_PORT=1025
33+
MAIL_USERNAME=null
34+
MAIL_PASSWORD=null
35+
MAIL_ENCRYPTION=null
36+
MAIL_FROM_ADDRESS="[email protected]"
37+
MAIL_FROM_NAME="${APP_NAME}"
38+
39+
AWS_ACCESS_KEY_ID=
40+
AWS_SECRET_ACCESS_KEY=
41+
AWS_DEFAULT_REGION=us-east-1
42+
AWS_BUCKET=
43+
AWS_USE_PATH_STYLE_ENDPOINT=false
44+
45+
PUSHER_APP_ID=
46+
PUSHER_APP_KEY=
47+
PUSHER_APP_SECRET=
48+
PUSHER_APP_CLUSTER=mt1

.github/workflows/ci.yml

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
name: Tests
2+
3+
on:
4+
pull_request:
5+
branches: [master]
6+
7+
concurrency:
8+
group: ci-${{ github.ref }}
9+
cancel-in-progress: true
10+
11+
jobs:
12+
phpunit:
13+
runs-on: ubuntu-latest
14+
services:
15+
postgres:
16+
image: postgres:13.2
17+
env:
18+
POSTGRES_USER: postgres
19+
POSTGRES_PASSWORD: postgres
20+
POSTGRES_DB: test
21+
ports:
22+
- 5432:5432
23+
options: --health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries 5
24+
steps:
25+
- name: Setup PHP
26+
uses: shivammathur/setup-php@v2
27+
with:
28+
php-version: '8.2'
29+
30+
- uses: actions/checkout@v1
31+
with:
32+
fetch-depth: 1
33+
34+
- name: Install composer dependencies
35+
run: |
36+
composer install --no-scripts
37+
38+
- name: Prepare Laravel Application
39+
run: |
40+
cp .env.ci .env
41+
42+
- name: Run Testsuite
43+
run: vendor/bin/phpunit tests/

.scrutinizer.yml

Lines changed: 0 additions & 19 deletions
This file was deleted.

composer.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -22,14 +22,14 @@
2222
}
2323
],
2424
"require": {
25-
"php": "^8.1",
26-
"illuminate/support": "^9.0|^10.0",
27-
"tymon/jwt-auth": "^2.0"
25+
"php": "^8.2",
26+
"illuminate/support": "^11.0",
27+
"tymon/jwt-auth": "^2.1"
2828
},
2929
"require-dev": {
30-
"laravel/legacy-factories": "^1.0",
31-
"orchestra/testbench": "^8.0",
32-
"phpunit/phpunit": "^9.0"
30+
"laravel/legacy-factories": "^1.4",
31+
"orchestra/testbench": "^9.4",
32+
"phpunit/phpunit": "^11.0"
3333
},
3434
"autoload": {
3535
"psr-4": {

0 commit comments

Comments
 (0)