Skip to content

Commit ed43cf9

Browse files
Merge pull request #1385 from krayin/2.x
feat: 2.x updates to master
2 parents 685a693 + 7d548ee commit ed43cf9

File tree

1,380 files changed

+66988
-46217
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,380 files changed

+66988
-46217
lines changed

.env.example

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@ APP_URL=http://localhost
77
APP_TIMEZONE=Asia/Kolkata
88
APP_LOCALE=en
99

10+
VITE_HOST=
11+
VITE_PORT=
12+
1013
LOG_CHANNEL=stack
1114
LOG_LEVEL=debug
1215

.gitattributes

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
1-
* text=auto
2-
*.css linguist-vendored
3-
*.scss linguist-vendored
4-
*.js linguist-vendored
1+
* text=auto eol=lf
2+
3+
*.blade.php diff=html
4+
*.css diff=css
5+
*.html diff=html
6+
*.md diff=markdown
7+
*.php diff=php
8+
9+
/.github export-ignore
510
CHANGELOG.md export-ignore
11+
.styleci.yml export-ignore

.github/workflows/ci.yml

Lines changed: 19 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,10 @@ jobs:
1313

1414
services:
1515
mysql:
16-
image: mysql:5.7
16+
image: mysql:8.0
1717
env:
1818
MYSQL_ROOT_PASSWORD: root
19-
MYSQL_DATABASE: krayin_testing
20-
MYSQL_USER: krayin
21-
MYSQL_PASSWORD: secret
19+
MYSQL_DATABASE: krayin
2220
ports:
2321
- 3306
2422
options: --health-cmd="mysqladmin ping" --health-interval=10s --health-timeout=5s --health-retries=5
@@ -34,39 +32,37 @@ jobs:
3432
extensions: curl, gd, intl, mbstring, openssl, pdo, pdo_mysql, tokenizer, zip
3533

3634
- name: Composer Install
37-
run: |
38-
set -e
39-
composer install --no-cache
35+
run: composer install
4036

4137
- name: Set Testing Environment
4238
run: |
43-
cp .env.example .env.testing
44-
set -e
45-
sed -i "s|^\(DB_HOST=\s*\).*$|\1127.0.0.1|" .env.testing
46-
sed -i "s|^\(DB_PORT=\s*\).*$|\1${{ job.services.mysql.ports['3306'] }}|" .env.testing
47-
sed -i "s|^\(DB_DATABASE=\s*\).*$|\1krayin_testing|" .env.testing
48-
sed -i "s|^\(DB_USERNAME=\s*\).*$|\1krayin|" .env.testing
49-
sed -i "s|^\(DB_PASSWORD=\s*\).*$|\1secret|" .env.testing
39+
cp .env.example .env
40+
sed -i "s|^\(APP_ENV=\s*\).*$|\1testing|" .env
41+
sed -i "s|^\(DB_HOST=\s*\).*$|\1127.0.0.1|" .env
42+
sed -i "s|^\(DB_PORT=\s*\).*$|\1${{ job.services.mysql.ports['3306'] }}|" .env
43+
sed -i "s|^\(DB_DATABASE=\s*\).*$|\1krayin|" .env
44+
sed -i "s|^\(DB_USERNAME=\s*\).*$|\1root|" .env
45+
sed -i "s|^\(DB_PASSWORD=\s*\).*$|\1root|" .env
5046
5147
- name: Key Generate
52-
run: set -e && php artisan key:generate --env=testing
48+
run: php artisan key:generate
5349

54-
- name: Complete Testing Env File
50+
- name: Complete ENV File
5551
run: |
56-
printf "The complete `.env.testing` ... \n\n"
57-
cat .env.testing
52+
printf "The complete `.env` ... \n\n"
53+
cat .env
5854
5955
- name: Migrate Database
60-
run: set -e && php artisan migrate --env=testing
56+
run: php artisan migrate
6157

6258
- name: Seed Database
63-
run: set -e && php artisan db:seed --env=testing
59+
run: php artisan db:seed
6460

6561
- name: Vendor Publish
66-
run: set -e && php artisan vendor:publish --all --force --env=testing
62+
run: php artisan vendor:publish --provider=Webkul\\Core\\Providers\\CoreServiceProvider --force
6763

6864
- name: Optimize Stuffs
69-
run: set -e && php artisan optimize:clear --env=testing
65+
run: php artisan optimize:clear
7066

7167
- name: Run Tests
72-
run: set -e && vendor/bin/pest
68+
run: vendor/bin/pest
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: Linting Tests
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
linting_tests:
7+
runs-on: ${{ matrix.operating-systems }}
8+
9+
strategy:
10+
matrix:
11+
operating-systems: [ubuntu-latest]
12+
php-versions: ['8.1']
13+
14+
name: PHP ${{ matrix.php-versions }} test on ${{ matrix.operating-systems }}
15+
16+
steps:
17+
- uses: actions/checkout@v1
18+
- name: Running Pint Test
19+
uses: aglipanci/[email protected]
20+
with:
21+
testMode: true
22+
verboseMode: true

.gitignore

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,12 @@
11
.env
22
.env.testing
3-
.env.backup
4-
.DS_Store
5-
.phpunit.result.cache
6-
docker-compose.override.yml
73
.idea
84
.php_cs.cache
5+
.phpunit.result.cache
96
.vscode
10-
todo.txt
117
.vagrant
8+
*.hot
9+
/stubs
1210
/data
1311
/docker-compose-collection
1412
Homestead.json
@@ -18,13 +16,13 @@ Homestead.yaml
1816
npm-debug.log
1917
package-lock.json
2018
/public/css
21-
/public/fonts
2219
/public/js
2320
/public/hot
2421
/public/storage
25-
/public/themes
2622
/public/vendor
23+
/lang/vendor
2724
/storage/*.key
2825
/storage/dcc-data/
29-
/stubs
3026
/vendor
27+
yarn.lock
28+
yarn-error.log

.htaccess

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

.styleci.yml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,5 @@ php:
55
finder:
66
not-name:
77
- index.php
8-
- server.php
9-
js:
10-
finder:
11-
not-name:
12-
- webpack.mix.js
8+
js: true
139
css: true

app/Console/Kernel.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ class Kernel extends ConsoleKernel
1919
/**
2020
* Define the application's command schedule.
2121
*
22-
* @param \Illuminate\Console\Scheduling\Schedule $schedule
2322
* @return void
2423
*/
2524
protected function schedule(Schedule $schedule)

app/Http/Kernel.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ class Kernel extends HttpKernel
2020
\App\Http\Middleware\PreventRequestsDuringMaintenance::class,
2121
\Illuminate\Foundation\Http\Middleware\ValidatePostSize::class,
2222
\App\Http\Middleware\TrimStrings::class,
23-
\Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull::class,
23+
\Webkul\Installer\Http\Middleware\CanInstall::class,
2424
];
2525

2626
/**

app/Http/Middleware/EncryptCookies.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,6 @@ class EncryptCookies extends Middleware
1212
* @var array
1313
*/
1414
protected $except = [
15-
//
15+
'dark_mode',
1616
];
1717
}

0 commit comments

Comments
 (0)