Skip to content

Commit 3a70b90

Browse files
Merge pull request #70 from TheDragonCode/3.x
[3.x] Refactoring project
2 parents 03d4763 + 29a6727 commit 3a70b90

File tree

180 files changed

+3754
-2932
lines changed

Some content is hidden

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

180 files changed

+3754
-2932
lines changed

.gitattributes

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
* text=auto
22

33
.github/ export-ignore
4+
.run/ export-ignore
5+
docs/ export-ignore
46
tests/ export-ignore
57

6-
.codecov.yml export-ignore
78
.editorconfig export-ignore
89
.gitattributes export-ignore
910
.gitignore export-ignore
10-
.scrutinizer.yml export-ignore
11-
.styleci.yml export-ignore
1211

12+
package.json export-ignore
1313
phpunit.xml export-ignore

.github/ISSUE_TEMPLATE/bug_report.yml

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
1-
name: Bug
1+
name: Bug Report
22
description: Report a bug or other issue
33

4-
labels: '👓 needs review'
5-
64
body:
75
- type: markdown
86
attributes:
@@ -20,10 +18,10 @@ body:
2018
Tip: Use the `php artisan --version` command to get information for Laravel Framework.
2119
Tip: Use the `php -v` command to get information for PHP.
2220
value: |
23-
- Migration Actions Version:
24-
- Laravel Version:
2521
- PHP Version:
2622
- Database Driver & Version:
23+
- Migration Actions Version:
24+
- Laravel Version:
2725
validations:
2826
required: true
2927

@@ -50,4 +48,4 @@ body:
5048
- type: markdown
5149
attributes:
5250
value: |
53-
❤️ The Dragon Code? Please consider supporting our collective: https://opencollective.com/dragon-code
51+
❤️ The Dragon Code? Please consider supporting [`our collective`](https://opencollective.com/dragon-code).
Lines changed: 1 addition & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,7 @@
11
name: Feature Proposal
22
description: Propose a new feature
33

4-
labels:
5-
- '💪 feature request'
6-
74
body:
8-
- type: markdown
9-
attributes:
10-
value: |
11-
Thanks for taking the time to fill out this bug report!
12-
13-
⚠️Review existing issues to see whether someone else has already reported your issue.
14-
155
- type: textarea
166
id: description
177
attributes:
@@ -23,23 +13,7 @@ body:
2313
validations:
2414
required: true
2515

26-
- type: textarea
27-
id: environment
28-
attributes:
29-
label: Environment
30-
description: |
31-
Tip: Use the `composer info dragon-code/laravel-migration-actions` command to get information for Laravel Lang.
32-
Tip: Use the `php artisan --version` command to get information for your application.
33-
Tip: Use the `php -v` command to get information for PHP.
34-
value: |
35-
- Migration Actions Version:
36-
- Laravel Version:
37-
- PHP Version:
38-
- Database Driver & Version:
39-
validations:
40-
required: false
41-
4216
- type: markdown
4317
attributes:
4418
value: |
45-
❤️ The Dragon Code? Please consider supporting our collective: https://opencollective.com/dragon-code
19+
❤️ The Dragon Code? Please consider supporting [`our collective`](https://opencollective.com/dragon-code).

.github/workflows/changelog.yml

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
name: changelog
2+
3+
on:
4+
release:
5+
types:
6+
- released
7+
8+
permissions: write-all
9+
10+
jobs:
11+
update:
12+
runs-on: ubuntu-latest
13+
14+
steps:
15+
- name: Checkout code
16+
uses: actions/checkout@v3
17+
18+
- name: Setup PHP
19+
uses: shivammathur/setup-php@v2
20+
with:
21+
extensions: curl, mbstring, zip, pcntl, pdo, pdo_sqlite, iconv, json
22+
coverage: none
23+
24+
- name: Git setup
25+
if: success()
26+
run: |
27+
git config --local user.email "action@github.com"
28+
git config --local user.name "GitHub Action"
29+
30+
- name: Update
31+
uses: stefanzweifel/changelog-updater-action@v1
32+
if: success()
33+
with:
34+
release-date: ${{ steps.release_date.outputs.date }}
35+
release-notes: ${{ github.event.release.body }}
36+
latest-version: ${{ github.event.release.tag_name }}
37+
compare-url-target-revision: ${{ github.event.release.target_commitish }}
38+
path-to-changelog: docs/prologue/changelog/3.x.md
39+
40+
- name: Storing
41+
id: changelog
42+
if: success()
43+
run: |
44+
IS_DIRTY=1
45+
46+
{ git add . && git commit -a -m "🧾 Update CHANGELOG"; } || IS_DIRTY=0
47+
48+
echo ::set-output name=is_dirty::${IS_DIRTY}
49+
50+
- name: Push changes
51+
uses: ad-m/github-push-action@master
52+
if: success() && steps.changelog.outputs.is_dirty == 1
53+
with:
54+
github_token: ${{ secrets.COMPOSER_TOKEN }}

.github/workflows/code-style.yml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: code-style
2+
3+
on:
4+
push:
5+
pull_request:
6+
7+
permissions: write-all
8+
9+
jobs:
10+
check:
11+
if: ${{ ! (github.event_name == 'push' && github.ref == 'refs/heads/main') }}
12+
13+
runs-on: ubuntu-latest
14+
15+
steps:
16+
- name: Checkout code
17+
uses: actions/checkout@v3
18+
19+
- name: Checking PHP Syntax
20+
uses: TheDragonCode/codestyler@v2.6.2
21+
22+
fix:
23+
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }}
24+
25+
runs-on: ubuntu-latest
26+
27+
steps:
28+
- name: Checkout code
29+
uses: actions/checkout@v3
30+
31+
- name: Checking PHP Syntax
32+
uses: TheDragonCode/codestyler@v2.6.2
33+
with:
34+
github_token: ${{ secrets.COMPOSER_TOKEN }}
35+
fix: true

.github/workflows/docs.yml

Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
name: docs
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
workflow_run:
8+
workflows:
9+
- changelog
10+
types:
11+
- completed
12+
workflow_dispatch:
13+
14+
permissions:
15+
contents: read
16+
pages: write
17+
id-token: write
18+
19+
concurrency:
20+
group: "pages"
21+
cancel-in-progress: true
22+
23+
jobs:
24+
generate:
25+
runs-on: ubuntu-latest
26+
27+
environment:
28+
name: github-pages
29+
url: ${{ steps.deployment.outputs.page_url }}
30+
31+
steps:
32+
- uses: actions/checkout@v3
33+
with:
34+
fetch-depth: 0
35+
token: ${{ secrets.GITHUB_TOKEN }}
36+
37+
- name: Setup Pages
38+
uses: actions/configure-pages@v2
39+
40+
- name: Setup Node.js
41+
uses: actions/setup-node@v3
42+
43+
- name: Cache dependencies
44+
uses: actions/cache@v3
45+
id: npm-cache
46+
with:
47+
path: |
48+
**/node_modules
49+
key: ${{ runner.os }}-npm-${{ hashFiles('**/package-lock.json') }}
50+
restore-keys: |
51+
${{ runner.os }}-npm-${{ hashFiles('**/package-lock.json') }}
52+
53+
- name: Install dependencies
54+
run: npm i
55+
56+
- name: Build VuePress site
57+
run: npm run build
58+
59+
- name: Upload artifact
60+
uses: actions/upload-pages-artifact@v1
61+
with:
62+
path: './docs/.vuepress/dist'
63+
64+
- name: Deploy to GitHub Pages
65+
id: deployment
66+
uses: actions/deploy-pages@v1

.github/workflows/laravel-6.yml

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

.github/workflows/laravel-7.yml

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

.github/workflows/laravel-8.yml

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

.github/workflows/laravel-9.yml renamed to .github/workflows/laravel.yml

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: "Laravel 9"
1+
name: laravel
22
on: [ push ]
33

44
jobs:
@@ -9,9 +9,19 @@ jobs:
99
fail-fast: true
1010
matrix:
1111
php: [ "8.0", "8.1" ]
12-
laravel: [ "9.0" ]
12+
laravel: [ "7.0", "8.0", "9.0" ]
13+
prefer: [ "stable", "lowest" ]
14+
exclude:
15+
- laravel: "7.0"
16+
php: "8.1"
1317

14-
name: PHP ${{ matrix.php }}
18+
- laravel: "7.0"
19+
php: "8.2"
20+
21+
- laravel: "10.0"
22+
php: "8.0"
23+
24+
name: PHP ${{ matrix.php }}, Laravel ${{ matrix.laravel }} ${{ matrix.prefer }}
1525

1626
steps:
1727
- name: Checkout code
@@ -25,7 +35,7 @@ jobs:
2535
coverage: none
2636

2737
- name: Install dependencies
28-
run: composer require --dev laravel/framework:^${{ matrix.laravel }}
38+
run: composer require --dev laravel/framework:^${{ matrix.laravel }} --prefer-${{ matrix.prefer }}
2939

3040
- name: Execute tests
3141
run: sudo vendor/bin/phpunit

0 commit comments

Comments
 (0)