Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
153 commits
Select commit Hold shift + click to select a range
46fb08c
Refactoring project
andrey-helldar Aug 17, 2022
23dc573
Refactoring Fresh command
andrey-helldar Aug 17, 2022
67d0c5f
Refactored tests classes
Aug 18, 2022
78034e8
Refactored test concerns
Aug 18, 2022
603ba19
Renamed actions namespace
Aug 18, 2022
2eb9741
Refactored GitTest
Aug 18, 2022
68519b1
Refactored migrations
Aug 18, 2022
ae23234
Updated About command
Aug 18, 2022
f9742ff
Refactored concerns
Aug 18, 2022
a99837c
Update About command
andrey-helldar Aug 18, 2022
04d886a
WIP WIP WIP
andrey-helldar Aug 18, 2022
d040b1f
WIP WIP WIP... 👋
andrey-helldar Aug 18, 2022
2325c1e
Update files
andrey-helldar Aug 26, 2022
849bc4a
Update code-style 💻💻
andrey-helldar Sep 8, 2022
992bd48
Merge `lint-check.yml` and `lint-fixer.yml` to `code-style.yml`
andrey-helldar Sep 8, 2022
7136c9a
Added Laravel 10 support
andrey-helldar Sep 8, 2022
ababd15
Fixed About command data
andrey-helldar Sep 8, 2022
befcaa9
Removed unused migrations
andrey-helldar Sep 8, 2022
2ad1cd4
Update action.stub
andrey-helldar Sep 8, 2022
658c441
Small refactoring
andrey-helldar Sep 8, 2022
4fd8e26
Added Upgrade command
andrey-helldar Sep 8, 2022
4690a2f
Fixed parameter initialization
andrey-helldar Sep 8, 2022
06bc25d
Parameter typing changed
andrey-helldar Sep 8, 2022
e9e47e7
Refactored Git support class
andrey-helldar Sep 8, 2022
cfa059e
Moved base database class to another namespace
andrey-helldar Sep 8, 2022
b37555a
Removed full stop
andrey-helldar Sep 8, 2022
f0c717f
Added Make command
andrey-helldar Sep 8, 2022
d0558c7
Update issue templates
andrey-helldar Sep 8, 2022
9f2a658
Update Laravel unit tests
andrey-helldar Sep 8, 2022
49442c2
Update Laravel unit tests
andrey-helldar Sep 8, 2022
7e40b14
Update config file
andrey-helldar Sep 8, 2022
86f776b
Update ServiceProvider.php
andrey-helldar Sep 8, 2022
0e80ac6
Prepared console commands
andrey-helldar Sep 8, 2022
8fa6785
Update Optionable.php
andrey-helldar Sep 9, 2022
49ca894
Update console commands
andrey-helldar Sep 9, 2022
463bf1b
Added Config helper
andrey-helldar Sep 9, 2022
9417bd5
Update Processors
andrey-helldar Sep 9, 2022
78fd837
Removed unnecessary processor
andrey-helldar Sep 9, 2022
95cab58
Updated ActionRepository.php
andrey-helldar Sep 9, 2022
4f9cfef
Updated `Actionable.php` and was renamed to `Action.php`
andrey-helldar Sep 9, 2022
b7836dd
Update Git.php
andrey-helldar Sep 9, 2022
3eee781
Removed unnecessary classes
andrey-helldar Sep 9, 2022
40d8425
Revert tests
andrey-helldar Sep 9, 2022
9f30f95
WOW! Added Laravel 6 support
andrey-helldar Sep 9, 2022
f7631e3
Update GitHub Actions
andrey-helldar Sep 9, 2022
a487444
Update GitHub Actions
andrey-helldar Sep 9, 2022
782de6e
Update GitHub Actions
andrey-helldar Sep 9, 2022
bfda647
Fixed exclude matrix actions
andrey-helldar Sep 9, 2022
9685ceb
Update composer.json
andrey-helldar Sep 9, 2022
ae3ba62
Update laravel.yml
andrey-helldar Sep 9, 2022
907dfd1
Added BaseChangeMigrationColumn
andrey-helldar Sep 15, 2022
6f12710
Update Options DTO
andrey-helldar Sep 15, 2022
ed9b7b8
Trait was renamed to `Anonymous` from `Anonymouses`
andrey-helldar Sep 15, 2022
321e1cf
Update Install processor
andrey-helldar Sep 15, 2022
78eea0d
Updated Make processor
andrey-helldar Sep 15, 2022
3f35ac6
Updated Migrate processor
andrey-helldar Sep 15, 2022
cf71fab
Removed old file
andrey-helldar Sep 15, 2022
580c222
Added the `runDown` method to `Migrator`
andrey-helldar Sep 15, 2022
ce299eb
Added declare strict type to the stub file
andrey-helldar Oct 2, 2022
4cc1041
Removed unnecessary method call
andrey-helldar Oct 2, 2022
e6b3cf5
Refactored Make processor
andrey-helldar Oct 2, 2022
b612237
Update Migrate processor
andrey-helldar Oct 2, 2022
11d595e
Refactored Refresh processor
andrey-helldar Oct 2, 2022
c35eb2e
Upgrade codestyle: replace `snake_case` variables to `camelCase`
andrey-helldar Oct 2, 2022
ace3c80
Update Command class
andrey-helldar Oct 2, 2022
393d47c
Refactored Reset processor
andrey-helldar Oct 2, 2022
7fb04c0
Refactored Rollback processor
andrey-helldar Oct 2, 2022
c156d29
Refactored Status processor
andrey-helldar Oct 2, 2022
2f6a67d
WIP Status refactoring
andrey-helldar Oct 2, 2022
96ee8a8
Update Status processor
andrey-helldar Oct 2, 2022
ec1ada3
Added Upgrade processor
andrey-helldar Oct 2, 2022
6604c81
Update getByStep method
andrey-helldar Oct 2, 2022
92f1805
Added setting connection name
andrey-helldar Oct 2, 2022
4f98e46
Update options
andrey-helldar Oct 2, 2022
ef16623
Added events
andrey-helldar Oct 2, 2022
7a010e5
Update About trait
andrey-helldar Oct 5, 2022
12b19bd
Removed `dragon-code/contracts` dependency
andrey-helldar Oct 5, 2022
75f6a26
Added invokable method by default
andrey-helldar Oct 5, 2022
06e60d2
Resolved Dependency Injection to `invokable`, `up` and `down` methods
andrey-helldar Oct 5, 2022
749aca9
Removed `force` checking
andrey-helldar Oct 5, 2022
419b261
Fixed command options
andrey-helldar Oct 5, 2022
51121e5
Fixed migrate initialize
andrey-helldar Oct 5, 2022
26abe4c
Upgrade config file
andrey-helldar Oct 5, 2022
bbf1f2b
Update Upgrade processor
andrey-helldar Oct 5, 2022
4ff129a
Resolved OutputInterface dependency inject
andrey-helldar Oct 6, 2022
5ad8c1f
Added funding block to `composer.json`
andrey-helldar Oct 6, 2022
f080616
Fixed arguments
andrey-helldar Oct 6, 2022
31a1e31
Removed unecessary concern
andrey-helldar Oct 6, 2022
77b6a97
Update dependency
andrey-helldar Oct 6, 2022
59734a5
Resolved Fresh command
andrey-helldar Oct 6, 2022
ac03dbe
WIP
andrey-helldar Oct 6, 2022
bae0e3e
Update tests
andrey-helldar Oct 6, 2022
9238672
Fixed GitHub Actions rules
andrey-helldar Oct 6, 2022
581eb93
Update tests rules
andrey-helldar Oct 7, 2022
c930bd5
Update tests
andrey-helldar Oct 8, 2022
92b88f4
Fixed saving the path to the database
andrey-helldar Oct 8, 2022
e6db259
Fixed getting a list of new files
andrey-helldar Oct 8, 2022
6ae2fc5
Fixed options declaration
andrey-helldar Oct 8, 2022
7f5ee82
🧑‍🏭
andrey-helldar Oct 8, 2022
8b3c0ad
Added forgetting processors
andrey-helldar Oct 8, 2022
7984027
Fixed options
andrey-helldar Oct 8, 2022
0373cf5
Fixed processor's link
andrey-helldar Oct 8, 2022
21a63c8
Fixed `path` options provide
andrey-helldar Oct 8, 2022
e5ffdd6
Update tests
andrey-helldar Oct 8, 2022
7ae263a
Work, work, work...
andrey-helldar Oct 10, 2022
e13b0de
RC
andrey-helldar Oct 10, 2022
dec5811
Error: Class "ChangeMigrationActionsTable" not found
andrey-helldar Oct 10, 2022
3936a98
Update Git helper
andrey-helldar Oct 10, 2022
d7b9a48
Removed output tests
andrey-helldar Oct 10, 2022
b0c5cdb
Call to undefined method Illuminate\Foundation\Testing\PendingCommand…
andrey-helldar Oct 10, 2022
cadda42
BadMethodCallException: Method Illuminate\Database\Schema\Blueprint::…
andrey-helldar Oct 10, 2022
dbe892a
Undefined constant DragonCode\LaravelActions\Console\Command::SUCCESS
andrey-helldar Oct 10, 2022
06dedc6
Drop Laravel 6.0 tests
andrey-helldar Oct 10, 2022
40e2ba9
Bump min versions
andrey-helldar Oct 10, 2022
55ddf17
Remove lowest tests
andrey-helldar Oct 10, 2022
17f4e89
Fixed code-style
andrey-helldar Oct 10, 2022
3529203
Revert lowest tests
andrey-helldar Oct 10, 2022
01e5b30
Bump `orchestra/testbench`
andrey-helldar Oct 10, 2022
3b2f4b1
Error: Undefined constant DragonCode\LaravelActions\Console\Command::…
andrey-helldar Oct 10, 2022
2b7775c
Bump `symfony/console`
andrey-helldar Oct 10, 2022
d610b37
Bump `symfony/console`
andrey-helldar Oct 10, 2022
457a463
Bump `symfony/console`
andrey-helldar Oct 10, 2022
b6c4ced
`nesbot/carbon`
andrey-helldar Oct 10, 2022
a0045c7
`nesbot/carbon`
andrey-helldar Oct 10, 2022
62c83bc
`nesbot/carbon`
andrey-helldar Oct 10, 2022
9ccfd1d
`nesbot/carbon`
andrey-helldar Oct 10, 2022
a2a1000
`nesbot/carbon`
andrey-helldar Oct 10, 2022
f5e44f8
`nesbot/carbon`
andrey-helldar Oct 10, 2022
2503d3d
Revert Laravel 6
andrey-helldar Oct 10, 2022
d2aaf58
Drop Laravel 6
andrey-helldar Oct 10, 2022
b9cccf8
Update .gitattributes
andrey-helldar Oct 11, 2022
af45b8e
Prepared docs
andrey-helldar Oct 11, 2022
98071b6
Added installation page
andrey-helldar Oct 11, 2022
3052a34
Added nested path
andrey-helldar Oct 11, 2022
2e38fe6
Update creating.md
andrey-helldar Oct 11, 2022
747a392
Fixed invokable calling
andrey-helldar Oct 11, 2022
9ec0b68
Update docs
andrey-helldar Oct 11, 2022
c200cc1
Update running.md
andrey-helldar Oct 11, 2022
6b77dfd
Updated docs
andrey-helldar Oct 11, 2022
e60259a
Fixed code-style
andrey-helldar Oct 11, 2022
d114762
Added notifications when upgrade command running
andrey-helldar Oct 11, 2022
a966d4d
Bump min PHP version to 8.0.2
andrey-helldar Oct 11, 2022
50a1b1b
Update README.md
andrey-helldar Oct 11, 2022
ad2c497
Update README.md
andrey-helldar Oct 11, 2022
56794b9
Update creating.md
andrey-helldar Oct 11, 2022
0594576
Update upgrade.md
andrey-helldar Oct 11, 2022
41d17c8
Update rollback.md
andrey-helldar Oct 11, 2022
42a21ea
Added docs with vuepress
andrey-helldar Oct 12, 2022
a95fc43
Dropped unstable Laravel 10
andrey-helldar Oct 12, 2022
eef214c
Drop PHP 8.2-RC tests
andrey-helldar Oct 12, 2022
3895536
Added GitHub Actions for the docs generation
andrey-helldar Oct 12, 2022
45dbc8b
Update GitHub Actions for the docs generation
andrey-helldar Oct 12, 2022
29a6727
Upgrade docs generation actions
andrey-helldar Oct 12, 2022
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
6 changes: 3 additions & 3 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
* text=auto

.github/ export-ignore
.run/ export-ignore
docs/ export-ignore
tests/ export-ignore

.codecov.yml export-ignore
.editorconfig export-ignore
.gitattributes export-ignore
.gitignore export-ignore
.scrutinizer.yml export-ignore
.styleci.yml export-ignore

package.json export-ignore
phpunit.xml export-ignore
10 changes: 4 additions & 6 deletions .github/ISSUE_TEMPLATE/bug_report.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
name: Bug
name: Bug Report
description: Report a bug or other issue

labels: '👓 needs review'

body:
- type: markdown
attributes:
Expand All @@ -20,10 +18,10 @@ body:
Tip: Use the `php artisan --version` command to get information for Laravel Framework.
Tip: Use the `php -v` command to get information for PHP.
value: |
- Migration Actions Version:
- Laravel Version:
- PHP Version:
- Database Driver & Version:
- Migration Actions Version:
- Laravel Version:
validations:
required: true

Expand All @@ -50,4 +48,4 @@ body:
- type: markdown
attributes:
value: |
❤️ The Dragon Code? Please consider supporting our collective: https://opencollective.com/dragon-code
❤️ The Dragon Code? Please consider supporting [`our collective`](https://opencollective.com/dragon-code).
28 changes: 1 addition & 27 deletions .github/ISSUE_TEMPLATE/feature_request.yml
Original file line number Diff line number Diff line change
@@ -1,17 +1,7 @@
name: Feature Proposal
description: Propose a new feature

labels:
- '💪 feature request'

body:
- type: markdown
attributes:
value: |
Thanks for taking the time to fill out this bug report!

⚠️Review existing issues to see whether someone else has already reported your issue.

- type: textarea
id: description
attributes:
Expand All @@ -23,23 +13,7 @@ body:
validations:
required: true

- type: textarea
id: environment
attributes:
label: Environment
description: |
Tip: Use the `composer info dragon-code/laravel-migration-actions` command to get information for Laravel Lang.
Tip: Use the `php artisan --version` command to get information for your application.
Tip: Use the `php -v` command to get information for PHP.
value: |
- Migration Actions Version:
- Laravel Version:
- PHP Version:
- Database Driver & Version:
validations:
required: false

- type: markdown
attributes:
value: |
❤️ The Dragon Code? Please consider supporting our collective: https://opencollective.com/dragon-code
❤️ The Dragon Code? Please consider supporting [`our collective`](https://opencollective.com/dragon-code).
54 changes: 54 additions & 0 deletions .github/workflows/changelog.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
name: changelog

on:
release:
types:
- released

permissions: write-all

jobs:
update:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v3

- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
extensions: curl, mbstring, zip, pcntl, pdo, pdo_sqlite, iconv, json
coverage: none

- name: Git setup
if: success()
run: |
git config --local user.email "action@github.com"
git config --local user.name "GitHub Action"

- name: Update
uses: stefanzweifel/changelog-updater-action@v1
if: success()
with:
release-date: ${{ steps.release_date.outputs.date }}
release-notes: ${{ github.event.release.body }}
latest-version: ${{ github.event.release.tag_name }}
compare-url-target-revision: ${{ github.event.release.target_commitish }}
path-to-changelog: docs/prologue/changelog/3.x.md

- name: Storing
id: changelog
if: success()
run: |
IS_DIRTY=1

{ git add . && git commit -a -m "🧾 Update CHANGELOG"; } || IS_DIRTY=0

echo ::set-output name=is_dirty::${IS_DIRTY}

- name: Push changes
uses: ad-m/github-push-action@master
if: success() && steps.changelog.outputs.is_dirty == 1
with:
github_token: ${{ secrets.COMPOSER_TOKEN }}
35 changes: 35 additions & 0 deletions .github/workflows/code-style.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: code-style

on:
push:
pull_request:

permissions: write-all

jobs:
check:
if: ${{ ! (github.event_name == 'push' && github.ref == 'refs/heads/main') }}

runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v3

- name: Checking PHP Syntax
uses: TheDragonCode/codestyler@v2.6.2

fix:
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }}

runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v3

- name: Checking PHP Syntax
uses: TheDragonCode/codestyler@v2.6.2
with:
github_token: ${{ secrets.COMPOSER_TOKEN }}
fix: true
66 changes: 66 additions & 0 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
name: docs

on:
push:
branches:
- main
workflow_run:
workflows:
- changelog
types:
- completed
workflow_dispatch:

permissions:
contents: read
pages: write
id-token: write

concurrency:
group: "pages"
cancel-in-progress: true

jobs:
generate:
runs-on: ubuntu-latest

environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}

steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
token: ${{ secrets.GITHUB_TOKEN }}

- name: Setup Pages
uses: actions/configure-pages@v2

- name: Setup Node.js
uses: actions/setup-node@v3

- name: Cache dependencies
uses: actions/cache@v3
id: npm-cache
with:
path: |
**/node_modules
key: ${{ runner.os }}-npm-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-npm-${{ hashFiles('**/package-lock.json') }}

- name: Install dependencies
run: npm i

- name: Build VuePress site
run: npm run build

- name: Upload artifact
uses: actions/upload-pages-artifact@v1
with:
path: './docs/.vuepress/dist'

- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v1
31 changes: 0 additions & 31 deletions .github/workflows/laravel-6.yml

This file was deleted.

31 changes: 0 additions & 31 deletions .github/workflows/laravel-7.yml

This file was deleted.

31 changes: 0 additions & 31 deletions .github/workflows/laravel-8.yml

This file was deleted.

18 changes: 14 additions & 4 deletions .github/workflows/laravel-9.yml → .github/workflows/laravel.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: "Laravel 9"
name: laravel
on: [ push ]

jobs:
Expand All @@ -9,9 +9,19 @@ jobs:
fail-fast: true
matrix:
php: [ "8.0", "8.1" ]
laravel: [ "9.0" ]
laravel: [ "7.0", "8.0", "9.0" ]
prefer: [ "stable", "lowest" ]
exclude:
- laravel: "7.0"
php: "8.1"

name: PHP ${{ matrix.php }}
- laravel: "7.0"
php: "8.2"

- laravel: "10.0"
php: "8.0"

name: PHP ${{ matrix.php }}, Laravel ${{ matrix.laravel }} ${{ matrix.prefer }}

steps:
- name: Checkout code
Expand All @@ -25,7 +35,7 @@ jobs:
coverage: none

- name: Install dependencies
run: composer require --dev laravel/framework:^${{ matrix.laravel }}
run: composer require --dev laravel/framework:^${{ matrix.laravel }} --prefer-${{ matrix.prefer }}

- name: Execute tests
run: sudo vendor/bin/phpunit
14 changes: 0 additions & 14 deletions .github/workflows/lint-check.yml

This file was deleted.

Loading