-
-
Notifications
You must be signed in to change notification settings - Fork 30
feat: add automation, linting and improve DX #174
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: 2.x
Are you sure you want to change the base?
Changes from 27 commits
2258e90
c8c6e57
35218e4
e963a39
fa62923
cedd95e
c3bdc70
43b6b87
6e6a07c
1a01cfb
397b07a
8a7014f
2cbbff8
d8ae4ac
9856508
ef9f758
c4a6d3f
b7b65c5
17aac80
d686f42
66a618b
5ff4a40
99ca6a5
ef18b28
014fe00
d4f889b
3a70d7c
831fb04
fa3c4d0
522cdca
7b555e8
edc3eb8
8ba7bcc
d421d64
93d2036
ea07603
822ca9b
1cf29cc
a428d00
2387dbb
7b5da77
d1c96e1
6ec430e
a5ad866
1355dda
cdeceaa
2d6b5b0
bbeb2f2
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
* | ||
!.gitignore |
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Developer now can edit .env.example using editor and then generate local
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
# https://docs.docker.com/compose/reference/envvars/#compose_project_name | ||
# With custom namespace provided, it will be used to prefix all services | ||
# in Docker network for current project | ||
COMPOSE_PROJECT_NAME=cycle-database | ||
APP_ENV=production | ||
|
||
DB_CONNECTION=pgsql | ||
DB_HOST=pgsql | ||
DB_PORT=5432 | ||
|
||
DB_DATABASE=default | ||
DB_USERNAME=root | ||
DB_PASSWORD=password | ||
|
||
DB_SQLSERVER_FORWARD_PORT=11433 | ||
DB_MYSQL_FORWARD_PORT=13333 | ||
DB_PGSQL_FORWARD_PORT=15333 | ||
|
||
XDEBUG_MODE=coverage | ||
|
||
GITHUB_TOKEN=ghp_ |
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Production composer package, that is bundled by GitHub, should only contain production files, |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,15 @@ | ||
/.github export-ignore | ||
/.editorconfig export-ignore | ||
/.gitattributes export-ignore | ||
/.gitignore export-ignore | ||
/tests export-ignore | ||
/.build export-ignore | ||
/.github export-ignore | ||
/tests export-ignore | ||
.editorconfig export-ignore | ||
.env.example export-ignore | ||
.gitattributes export-ignore | ||
.gitignore export-ignore | ||
.php-cs-fixer.dist.php export-ignore | ||
.scrutinizer.yml export-ignore | ||
.styleci.yml export-ignore | ||
docker-compose.yaml export-ignore | ||
infection.json.dist export-ignore | ||
Makefile export-ignore | ||
phpunit.xml export-ignore | ||
psalm.xml export-ignore |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,72 @@ | ||
{ | ||
"release-type": "node", | ||
"packages": { | ||
".": { | ||
"package-name": "database", | ||
"changelog-path": "/CHANGELOG.md" | ||
} | ||
}, | ||
"include-component-in-tag": false, | ||
"changelog-sections": [ | ||
{ | ||
"type": "feat", | ||
"section": "Features", | ||
"hidden": false | ||
}, | ||
{ | ||
"type": "fix", | ||
"section": "Bug Fixes", | ||
"hidden": false | ||
}, | ||
{ | ||
"type": "perf", | ||
"section": "Performance Improvements", | ||
"hidden": false | ||
}, | ||
{ | ||
"type": "docs", | ||
"section": "Documentation", | ||
"hidden": false | ||
}, | ||
{ | ||
"type": "chore", | ||
"section": "Miscellaneous", | ||
"hidden": false | ||
}, | ||
{ | ||
"type": "style", | ||
"section": "Styles", | ||
"hidden": true | ||
}, | ||
{ | ||
"type": "revert", | ||
"section": "Reverts", | ||
"hidden": true | ||
}, | ||
{ | ||
"type": "deps", | ||
"section": "Dependencies", | ||
"hidden": false | ||
}, | ||
{ | ||
"type": "refactor", | ||
"section": "Code Refactoring", | ||
"hidden": false | ||
}, | ||
{ | ||
"type": "test", | ||
"section": "Tests", | ||
"hidden": true | ||
}, | ||
{ | ||
"type": "build", | ||
"section": "Build System", | ||
"hidden": true | ||
}, | ||
{ | ||
"type": "ci", | ||
"section": "Continuous Integration", | ||
"hidden": true | ||
} | ||
] | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
".": "3.0.0" | ||
} |
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Moved |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
--- | ||
|
||
# this file is for the labeler workflow job | ||
# Documentation https://github.com/marketplace/actions/labeler | ||
|
||
"type: documentation": | ||
- changed-files: | ||
- any-glob-to-any-file: [resources/*, .github/*, ./*.md] | ||
|
||
"type: maintenance": | ||
- changed-files: | ||
- any-glob-to-any-file: [tests/**/*, .github/workflows/*] | ||
|
||
... |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
--- | ||
|
||
# This workflow will triage pull requests and apply a label based on the | ||
# paths that are modified in the pull request. | ||
# | ||
# To use this workflow, you will need to set up a .github/labeler.yml | ||
# file with configuration. For more information, see: | ||
# https://github.com/actions/labeler/blob/master/README.md | ||
|
||
on: # yamllint disable-line rule:truthy | ||
pull_request: | ||
|
||
name: 🏷️ Add labels | ||
|
||
jobs: | ||
label: | ||
uses: wayofdev/gh-actions/.github/workflows/apply-labels.yml@master | ||
with: | ||
os: ubuntu-latest | ||
secrets: | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
... |
This file was deleted.
This file was deleted.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Introduced a
.build
directory to consolidatepsalm
,php-cs-fixer
, andphpunit
cache files into a single location. This change declutters the local development environment and enables GitHub Actions to efficiently cache the.build
folder, streamlining the workflow.