Skip to content
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

feat(v2): finally the new bot version omg i just can't code anymore wtf #53

Merged
merged 188 commits into from
Mar 16, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
188 commits
Select commit Hold shift + click to select a range
6274e9c
feat(init): he4rtbot shippuden
DanielHe4rt Jan 13, 2023
271275a
feat(core): laravel base installation
DanielHe4rt Jan 13, 2023
d77accb
feat(core): base core implementation
DanielHe4rt Jan 13, 2023
eb4e76f
feat(core): adding core service provider
DanielHe4rt Jan 13, 2023
24b54ff
feat(v1): important files to start
DanielHe4rt Jan 13, 2023
34fa377
chore: removing useless models
DanielHe4rt Jan 14, 2023
3d12c92
feat: base domains
DanielHe4rt Jan 14, 2023
65a44da
remove: migrations
DanielHe4rt Jan 14, 2023
03f3b61
Merge branch 'v2/main' into v2/base-domain-structure
DanielHe4rt Jan 14, 2023
a8396c3
wip: organizing namespaces
DanielHe4rt Jan 14, 2023
d53c6c7
wip: characters domain
DanielHe4rt Jan 14, 2023
f04bbfc
test: create unit tests for user entity
nothenrin Jan 14, 2023
a7c3fae
https://open.spotify.com/track/2LMkwUfqC6S6s6qDVlEuzV\?si\=0421300d84…
nothenrin Jan 14, 2023
bbda1dd
wip
DanielHe4rt Jan 14, 2023
7f5270f
feat: create the databases and cache containters. also setup the data…
nothenrin Jan 14, 2023
70ef890
Merge pull request #25 from he4rt/v2/feature/docker
DanielHe4rt Jan 14, 2023
31508a0
holy wip
nothenrin Jan 15, 2023
862392b
feat: characters domain
DanielHe4rt Jan 15, 2023
0f00abb
Merge pull request #24 from he4rt/v2/feature/user-domain
DanielHe4rt Jan 17, 2023
5c4734a
fix: entities
DanielHe4rt Jan 17, 2023
9702844
fix: nadachi
DanielHe4rt Jan 17, 2023
3de9487
wip
DanielHe4rt Jan 17, 2023
1766124
Merge pull request #23 from he4rt/v2/base-domain-structure
DanielHe4rt Jan 17, 2023
566ea37
wip
PedroPMS Jan 18, 2023
ff48fa2
wip
DanielHe4rt Jan 18, 2023
9c30cfd
wip
DanielHe4rt Jan 18, 2023
d4b0889
feat: index meeting
PedroPMS Jan 18, 2023
9a935aa
wip
PedroPMS Jan 19, 2023
915d19e
wip
DanielHe4rt Jan 19, 2023
abbc571
wip
DanielHe4rt Jan 19, 2023
62fefa5
wip
DanielHe4rt Jan 19, 2023
80b4d2a
wip
DanielHe4rt Jan 19, 2023
ff5dc35
wip
DanielHe4rt Jan 19, 2023
253cc70
wip
DanielHe4rt Jan 19, 2023
db89050
wip
DanielHe4rt Jan 19, 2023
3d057d7
Merge pull request #28 from he4rt/feat/varias-coisas
DanielHe4rt Jan 19, 2023
4e95ecb
wip
DanielHe4rt Jan 19, 2023
19ff31d
wip
DanielHe4rt Jan 19, 2023
b5ef823
wip
DanielHe4rt Jan 19, 2023
ade141e
wip
DanielHe4rt Jan 19, 2023
7e39535
wip
PedroPMS Jan 19, 2023
d482195
Merge branch 'feat/ddd-meetings' of github.com:he4rt/he4rt-bot-api in…
PedroPMS Jan 19, 2023
d502d32
wip
DanielHe4rt Jan 19, 2023
6006199
wip
DanielHe4rt Jan 19, 2023
a999b75
wip
DanielHe4rt Jan 19, 2023
8be158d
wip
DanielHe4rt Jan 19, 2023
03488a6
Merge branch 'v2/main' into feat/ddd-meetings
DanielHe4rt Jan 19, 2023
da98ed7
wip
DanielHe4rt Jan 19, 2023
85f52ff
fix: type foreign key
DanielHe4rt Jan 19, 2023
ed1ff8e
wip
DanielHe4rt Jan 19, 2023
a194397
wip
DanielHe4rt Jan 19, 2023
2255549
wip
DanielHe4rt Jan 19, 2023
d136e4e
wip
DanielHe4rt Jan 20, 2023
22a1f8b
wip
DanielHe4rt Jan 20, 2023
0065c83
wip
DanielHe4rt Jan 20, 2023
5e77e77
wip
DanielHe4rt Jan 20, 2023
3689158
wip
DanielHe4rt Jan 20, 2023
92d3934
wip
DanielHe4rt Jan 20, 2023
eddc207
wip
DanielHe4rt Jan 20, 2023
6688aa3
wip
DanielHe4rt Jan 20, 2023
9c3c7f6
wip
DanielHe4rt Jan 20, 2023
03a3a89
wip
DanielHe4rt Jan 20, 2023
18c0be7
wip
DanielHe4rt Jan 20, 2023
7e3bb2b
Merge pull request #27 from he4rt/feat/ddd-meetings
DanielHe4rt Jan 20, 2023
76845a6
wip
DanielHe4rt Jan 21, 2023
a7259ce
test: get user test
Canhassi12 Jan 21, 2023
666b6c8
Docker Enviroment for Development
rafael-neris Jan 22, 2023
456767e
Ajustando testes
rafael-neris Jan 22, 2023
4de8258
Criando Makefile
rafael-neris Jan 22, 2023
e7f0e14
Merge pull request #31 from Canhassi12/feat/test-user
DanielHe4rt Jan 22, 2023
39fe3f8
wip
DanielHe4rt Jan 22, 2023
902523f
wip
DanielHe4rt Jan 22, 2023
44a0737
Merge pull request #30 from he4rt/v2/badges-domain
DanielHe4rt Jan 22, 2023
c0c4c4d
test: Get users paginated
Canhassi12 Jan 22, 2023
fb8d201
Merge pull request #32 from he4rt/v2/test/users
DanielHe4rt Jan 22, 2023
1152c7a
wip
DanielHe4rt Jan 22, 2023
59923c5
Merge branch 'v2/main' into v2/users
DanielHe4rt Jan 22, 2023
77c844f
Merge branch 'v2/main' of github.com:he4rt/he4rt-bot-api into docker-env
rafael-neris Jan 22, 2023
3277d34
Incluindo env no GitHub Actions
rafael-neris Jan 22, 2023
d603c86
Teste no GitHub Actions
rafael-neris Jan 22, 2023
d9f1df5
Testing env DB_TEST_DATABASE Github Actions
rafael-neris Jan 22, 2023
869fb4a
Adicionando conexão para testes
rafael-neris Jan 22, 2023
8a296e3
Teste para pipeline
rafael-neris Jan 23, 2023
146eb1b
Teste para pipeline
rafael-neris Jan 23, 2023
cb6b545
Teste para pipeline
rafael-neris Jan 23, 2023
9b8d746
Criando arquivo de envs para pipeline
rafael-neris Jan 23, 2023
bcf6c0d
Ajuste de database para pipeline
rafael-neris Jan 23, 2023
0745db5
Adding REDIS ENV
rafael-neris Jan 23, 2023
e1a9b55
Adding DB_CONNECTION to phpunit.xml
rafael-neris Jan 23, 2023
53be222
Updating DB_CONNECTION
rafael-neris Jan 23, 2023
ccddc36
Updating DB_CONNECTION
rafael-neris Jan 23, 2023
3d422c8
Updating DB_CONNECTION
rafael-neris Jan 23, 2023
a938799
Setting github actions
rafael-neris Jan 23, 2023
4b69fe7
Test Factory connection
rafael-neris Jan 23, 2023
31470bc
Abstract to Eloquent Factory
rafael-neris Jan 23, 2023
97c5f53
Abstract to Eloquent Factory
rafael-neris Jan 23, 2023
568e193
Default database host
rafael-neris Jan 23, 2023
aefa9d3
Default database host
rafael-neris Jan 23, 2023
a63c6e6
Default database host
rafael-neris Jan 23, 2023
e7496dd
Default database host in Github Actions env
rafael-neris Jan 23, 2023
20cb021
Default database host in Github Actions env
rafael-neris Jan 23, 2023
0c10ac5
Returning DatabaseMigrations
rafael-neris Jan 23, 2023
43e4961
Returning DatabaseMigrations
rafael-neris Jan 23, 2023
f8857e3
Update .github/workflows/laravel.yml
PedroPMS Jan 23, 2023
a8c45da
Update .github/workflows/laravel.yml
PedroPMS Jan 23, 2023
1910229
Returning DatabaseMigrations
rafael-neris Jan 23, 2023
0197a8e
Merge branch 'docker-env' of github.com:he4rt/he4rt-bot-api into dock…
rafael-neris Jan 23, 2023
9da972a
Adding bash to Makefile
rafael-neris Jan 23, 2023
a065f5f
Improving migrations and changing DatabaseMigrate to DatabaseTransact…
rafael-neris Jan 23, 2023
0c888ba
test: all meetings tests unit and feature
Canhassi12 Jan 23, 2023
6e283be
Merge pull request #34 from he4rt/docker-env
rafael-neris Jan 23, 2023
61e4a38
test: character actions unit test
Canhassi12 Jan 23, 2023
4fbf457
refactor: some errors
Canhassi12 Jan 23, 2023
d70fb48
Merge branch 'v2/main' into v2/test/meetings
Canhassi12 Jan 23, 2023
2afd716
aaaa
Canhassi12 Jan 23, 2023
7c78ca3
Merge pull request #36 from he4rt/v2/test/meetings
Canhassi12 Jan 23, 2023
f803862
Revert "test: all meetings tests unit and feature"
Canhassi12 Jan 24, 2023
c562cad
resolve conflict
Canhassi12 Jan 24, 2023
241065a
resolving error
Canhassi12 Jan 24, 2023
301b3f7
...
Canhassi12 Jan 24, 2023
e4bf6a7
test: persistMessage unit test and provider
Canhassi12 Jan 24, 2023
e661fc8
forgot to add this file
Canhassi12 Jan 24, 2023
7332832
test: badge actions and application unit test
Canhassi12 Jan 25, 2023
c3f38a3
test: character application unit test and providers
Canhassi12 Jan 25, 2023
6d0345c
Merge pull request #39 from he4rt/v2/test/message-domain-actions
DanielHe4rt Jan 26, 2023
2b80717
Merge pull request #38 from he4rt/v2/test/character-domain-actions
DanielHe4rt Jan 26, 2023
384d8f9
chore: single variable into tests
DanielHe4rt Jan 26, 2023
0068390
Merge pull request #41 from he4rt/v2/test/badges-domain
DanielHe4rt Jan 26, 2023
b69f16b
Merge pull request #42 from he4rt/v2/test/character-application
DanielHe4rt Jan 26, 2023
c8b54bd
wip
DanielHe4rt Jan 26, 2023
d0a1e77
Merge branch 'v2/main' into v2/users
DanielHe4rt Jan 26, 2023
868119d
wip: messages count
DanielHe4rt Jan 26, 2023
9cc28ef
wip: ignore env.testing
DanielHe4rt Jan 26, 2023
063f379
wip: users profile
DanielHe4rt Jan 28, 2023
cd3d93d
wip
DanielHe4rt Jan 28, 2023
5ee14d2
wip
DanielHe4rt Jan 28, 2023
afb1498
Merge pull request #43 from he4rt/v2/users
DanielHe4rt Jan 28, 2023
4175ab3
wip
DanielHe4rt Jan 28, 2023
52d3da7
feat: feedback domain + create feedback
DanielHe4rt Jan 28, 2023
08e1871
test: user find profile, providers, and fix some errors
Canhassi12 Jan 28, 2023
3b460a6
feat: feedbacks
DanielHe4rt Jan 30, 2023
cb7d424
wip
DanielHe4rt Jan 30, 2023
d4f821c
wip
DanielHe4rt Jan 30, 2023
f921ad7
wip
DanielHe4rt Jan 30, 2023
00d46fb
wip
DanielHe4rt Jan 30, 2023
af15e4a
Merge pull request #45 from he4rt/v2/feedback-domains
DanielHe4rt Jan 30, 2023
98d5766
fix: profile implementation flow
Canhassi12 Jan 30, 2023
25c09a6
Merge pull request #44 from he4rt/v2/test/user-findProfile
DanielHe4rt Jan 30, 2023
4f8d73a
fix: fixing codebase style
DanielHe4rt Jan 30, 2023
ac6dc0e
remove: useless file on season domain
DanielHe4rt Jan 30, 2023
7125bf4
feat: Season feature with tests
Canhassi12 Jan 31, 2023
626b3d7
fix: some errors in code
Canhassi12 Feb 1, 2023
d1a141c
Merge pull request #46 from he4rt/v2/feat/season
DanielHe4rt Feb 1, 2023
66d601f
wip
DanielHe4rt Feb 1, 2023
ff20407
wip
DanielHe4rt Feb 3, 2023
6cc864e
wip
DanielHe4rt Feb 3, 2023
19f4274
wip
DanielHe4rt Feb 3, 2023
01a265d
v2/minor-updates
DanielHe4rt Feb 3, 2023
c213392
wip
DanielHe4rt Feb 3, 2023
1cf20a4
wip
DanielHe4rt Feb 3, 2023
a6931f9
wip
DanielHe4rt Feb 3, 2023
ae8a6ab
wip
DanielHe4rt Feb 3, 2023
4770dae
wip
DanielHe4rt Feb 3, 2023
39a32c0
wip
DanielHe4rt Feb 3, 2023
bfa94a0
wip
DanielHe4rt Feb 3, 2023
9cdedd1
wip
DanielHe4rt Feb 3, 2023
aba081e
Merge pull request #47 from he4rt/v2/minor-updates
DanielHe4rt Feb 3, 2023
ea640f2
wip: join server
DanielHe4rt Feb 3, 2023
0804192
wip
DanielHe4rt Feb 3, 2023
d0e0c4e
wip
DanielHe4rt Feb 3, 2023
725ccad
wip
DanielHe4rt Feb 3, 2023
4bc6887
wip
DanielHe4rt Feb 4, 2023
9625fae
wip
DanielHe4rt Feb 4, 2023
fa75194
wip
DanielHe4rt Feb 4, 2023
b4944a5
wip
DanielHe4rt Feb 4, 2023
ba29547
wip
DanielHe4rt Feb 4, 2023
d5f89d9
Update Heart/Provider/Application/NewAccountByProvider.php
DanielHe4rt Feb 10, 2023
e73c292
Update Heart/Provider/Presentation/Controllers/ProvidersController.php
DanielHe4rt Feb 10, 2023
99de3fc
wip: voice message
DanielHe4rt Feb 11, 2023
b223e83
wip: tests namespaces
DanielHe4rt Feb 11, 2023
ad51fcf
wip: return type
DanielHe4rt Feb 11, 2023
1f39379
wip: voice logging
DanielHe4rt Feb 11, 2023
deaf979
wip: removing useless variable
DanielHe4rt Feb 11, 2023
5fd0076
fix pipeline
DanielHe4rt Feb 11, 2023
d783524
Merge pull request #48 from he4rt/v2/thats-all-folks
DanielHe4rt Feb 11, 2023
c18a9b7
daniel, não apaga as parada que tão certa denovo kkkkj
Canhassi12 Feb 27, 2023
e300d0d
Merge pull request #52 from he4rt/v2/test/meeting-domain-tests
DanielHe4rt Mar 14, 2023
6ca3aad
Merge branch 'main' into v2/main
DanielHe4rt Mar 14, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
7 changes: 5 additions & 2 deletions .editorconfig
Expand Up @@ -3,13 +3,16 @@ root = true
[*]
charset = utf-8
end_of_line = lf
insert_final_newline = true
indent_style = space
indent_size = 4
indent_style = space
insert_final_newline = true
trim_trailing_whitespace = true

[*.md]
trim_trailing_whitespace = false

[*.{yml,yaml}]
indent_size = 2

[docker-compose.yml]
indent_size = 4
67 changes: 52 additions & 15 deletions .env.example
@@ -1,31 +1,68 @@
APP_NAME=Lumen
APP_NAME=Laravel
APP_ENV=local
APP_KEY=
APP_DEBUG=true
APP_URL=http://localhost
APP_TIMEZONE=UTC
APP_DISCORD_WEBHOOK_URL=https://discord.com/api/webhooks/1043988813803962548/39T04t_36glaHqfUD_pSpB0plMR0D5oqxvou4lH0FOOXVHsLcVIK6lMih7XNfmvkvcZJ

LOG_CHANNEL=stack
LOG_SLACK_WEBHOOK_URL=
LOG_DEPRECATIONS_CHANNEL=null
LOG_LEVEL=debug

DB_CONNECTION=mysql
DB_HOST=127.0.0.1
DB_HOST=mysql
DB_PORT=3306
DB_DATABASE=homestead
DB_USERNAME=homestead
DB_PASSWORD=secret

DB_DATABASE=he4rt
DB_USERNAME=root
DB_PASSWORD=root

BROADCAST_DRIVER=log
CACHE_DRIVER=file
FILESYSTEM_DISK=local
QUEUE_CONNECTION=sync
SESSION_DRIVER=file
SESSION_LIFETIME=120

MEMCACHED_HOST=127.0.0.1

REDIS_HOST=127.0.0.1
REDIS_PASSWORD=null
REDIS_PORT=6379

CACHE_DRIVER=redis
QUEUE_CONNECTION=sync
MAIL_MAILER=smtp
MAIL_HOST=mailhog
MAIL_PORT=1025
MAIL_USERNAME=null
MAIL_PASSWORD=null
MAIL_ENCRYPTION=null
MAIL_FROM_ADDRESS="hello@example.com"
MAIL_FROM_NAME="${APP_NAME}"

AWS_ACCESS_KEY_ID=
AWS_SECRET_ACCESS_KEY=
AWS_DEFAULT_REGION=us-east-1
AWS_BUCKET=
AWS_USE_PATH_STYLE_ENDPOINT=false

PUSHER_APP_ID=
PUSHER_APP_KEY=
PUSHER_APP_SECRET=
PUSHER_HOST=
PUSHER_PORT=443
PUSHER_SCHEME=https
PUSHER_APP_CLUSTER=mt1

VITE_PUSHER_APP_KEY="${PUSHER_APP_KEY}"
VITE_PUSHER_HOST="${PUSHER_HOST}"
VITE_PUSHER_PORT="${PUSHER_PORT}"
VITE_PUSHER_SCHEME="${PUSHER_SCHEME}"
VITE_PUSHER_APP_CLUSTER="${PUSHER_APP_CLUSTER}"

HE4RT_DISCORD_BOT_KEY=123
HE4RT_DISCORD_LEVELUP_CHANNEL=123
SEASON_ID=
HE4RT_DISCORD_BOT_KEY=
HE4RT_DISCORD_LEVELUP_CHANNEL=
HE4RT_DISCORD_GUILD=

DISCORD_CLIENT_ID=
DISCORD_CLIENT_SECRET=
DISCORD_REDIRECT_URI=
DB_TEST_DATABASE="dev_he4rtbot"
DB_TEST_USERNAME="root"
DB_TEST_PASSWORD="root"
68 changes: 68 additions & 0 deletions .env.pipeline
@@ -0,0 +1,68 @@
APP_NAME=Laravel
APP_ENV=local
APP_KEY=
APP_DEBUG=true
APP_URL=http://localhost

LOG_CHANNEL=stack
LOG_DEPRECATIONS_CHANNEL=null
LOG_LEVEL=debug

DB_CONNECTION=testing
DB_HOST=127.0.0.1
DB_PORT=3306

DB_DATABASE=he4rt
DB_USERNAME=root
DB_PASSWORD=root

BROADCAST_DRIVER=log
CACHE_DRIVER=file
FILESYSTEM_DISK=local
QUEUE_CONNECTION=sync
SESSION_DRIVER=file
SESSION_LIFETIME=120

MEMCACHED_HOST=127.0.0.1

REDIS_HOST=127.0.0.1
REDIS_PASSWORD=null
REDIS_PORT=6379

MAIL_MAILER=smtp
MAIL_HOST=mailhog
MAIL_PORT=1025
MAIL_USERNAME=null
MAIL_PASSWORD=null
MAIL_ENCRYPTION=null
MAIL_FROM_ADDRESS="hello@example.com"
MAIL_FROM_NAME="${APP_NAME}"

AWS_ACCESS_KEY_ID=
AWS_SECRET_ACCESS_KEY=
AWS_DEFAULT_REGION=us-east-1
AWS_BUCKET=
AWS_USE_PATH_STYLE_ENDPOINT=false

PUSHER_APP_ID=
PUSHER_APP_KEY=
PUSHER_APP_SECRET=
PUSHER_HOST=
PUSHER_PORT=443
PUSHER_SCHEME=https
PUSHER_APP_CLUSTER=mt1

VITE_PUSHER_APP_KEY="${PUSHER_APP_KEY}"
VITE_PUSHER_HOST="${PUSHER_HOST}"
VITE_PUSHER_PORT="${PUSHER_PORT}"
VITE_PUSHER_SCHEME="${PUSHER_SCHEME}"
VITE_PUSHER_APP_CLUSTER="${PUSHER_APP_CLUSTER}"

SEASON_ID=
HE4RT_DISCORD_BOT_KEY=
HE4RT_DISCORD_LEVELUP_CHANNEL=
HE4RT_DISCORD_GUILD=

DB_TEST_DATABASE="dev_he4rtbot"
DB_TEST_USERNAME="root"
DB_TEST_PASSWORD="root"
25 changes: 0 additions & 25 deletions .env.testing

This file was deleted.

66 changes: 66 additions & 0 deletions .env.testing.example
@@ -0,0 +1,66 @@
APP_NAME=Laravel
APP_ENV=local
APP_KEY=base64:5SvutJ5rILwgZ1C0G64OTFaiwQs5GGz19i7g1p6EbiY=
APP_DEBUG=true
APP_URL=http://localhost

LOG_CHANNEL=stack
LOG_DEPRECATIONS_CHANNEL=null
LOG_LEVEL=debug

DB_CONNECTION=testing
DB_HOST=mysql
DB_PORT=3306
DB_DATABASE=dev_he4rtbot
DB_USERNAME=root
DB_PASSWORD=root

BROADCAST_DRIVER=log
CACHE_DRIVER=file
FILESYSTEM_DISK=local
QUEUE_CONNECTION=sync
SESSION_DRIVER=file
SESSION_LIFETIME=120

MEMCACHED_HOST=127.0.0.1

REDIS_HOST=127.0.0.1
REDIS_PASSWORD=null
REDIS_PORT=6379

MAIL_MAILER=smtp
MAIL_HOST=mailhog
MAIL_PORT=1025
MAIL_USERNAME=null
MAIL_PASSWORD=null
MAIL_ENCRYPTION=null
MAIL_FROM_ADDRESS="hello@example.com"
MAIL_FROM_NAME="${APP_NAME}"

AWS_ACCESS_KEY_ID=
AWS_SECRET_ACCESS_KEY=
AWS_DEFAULT_REGION=us-east-1
AWS_BUCKET=
AWS_USE_PATH_STYLE_ENDPOINT=false

PUSHER_APP_ID=
PUSHER_APP_KEY=
PUSHER_APP_SECRET=
PUSHER_HOST=
PUSHER_PORT=443
PUSHER_SCHEME=https
PUSHER_APP_CLUSTER=mt1

VITE_PUSHER_APP_KEY="${PUSHER_APP_KEY}"
VITE_PUSHER_HOST="${PUSHER_HOST}"
VITE_PUSHER_PORT="${PUSHER_PORT}"
VITE_PUSHER_SCHEME="${PUSHER_SCHEME}"
VITE_PUSHER_APP_CLUSTER="${PUSHER_APP_CLUSTER}"

SEASON_ID=2
BOT_SECRET=he4rt
HE4RT_DISCORD_BOT_KEY=
HE4RT_DISCORD_LEVELUP_CHANNEL=
HE4RT_DISCORD_GUILD=

REDIS_URL=127.0.0.1
11 changes: 11 additions & 0 deletions .gitattributes
@@ -0,0 +1,11 @@
* text=auto

*.blade.php diff=html
*.css diff=css
*.html diff=html
*.md diff=markdown
*.php diff=php

/.github export-ignore
CHANGELOG.md export-ignore
.styleci.yml export-ignore
4 changes: 0 additions & 4 deletions .github/logo.png:Zone.Identifier

This file was deleted.

25 changes: 17 additions & 8 deletions .github/workflows/laravel.yml
Expand Up @@ -3,12 +3,15 @@ name: Testing Lumen with MySQL
on: [ push ]
jobs:
lumen:
name: Lumen (PHP ${{ matrix.php-versions }})
name: Laravel (PHP ${{ matrix.php-versions }})
runs-on: ubuntu-latest
env:
DB_DATABASE: lumen
DB_DATABASE: dev_he4rtbot
DB_USERNAME: root
DB_PASSWORD: password
DB_PASSWORD: root
DB_TEST_DATABASE: dev_he4rtbot
DB_TEST_USERNAME: root
DB_TEST_PASSWORD: root
BROADCAST_DRIVER: log
CACHE_DRIVER: redis
QUEUE_CONNECTION: redis
Expand All @@ -20,8 +23,8 @@ jobs:
image: mysql:latest
env:
MYSQL_ALLOW_EMPTY_PASSWORD: false
MYSQL_ROOT_PASSWORD: password
MYSQL_DATABASE: lumen
MYSQL_ROOT_PASSWORD: root
MYSQL_DATABASE: dev_he4rtbot
ports:
- 3306/tcp
options: --health-cmd="mysqladmin ping" --health-interval=10s --health-timeout=5s --health-retries=3
Expand All @@ -34,7 +37,7 @@ jobs:
strategy:
fail-fast: false
matrix:
php-versions: [ '7.4' ]
php-versions: [ '8.1' ]
steps:
- name: Checkout
uses: actions/checkout@v3
Expand Down Expand Up @@ -70,19 +73,25 @@ jobs:
composer install --no-progress --prefer-dist --optimize-autoloader
composer require predis/predis illuminate/redis
- name: Prepare the application
run: php -r "file_exists('.env') || copy('.env.example', '.env');"
run: php -r "file_exists('.env') || copy('.env.pipeline', '.env');"

- name: Register Redis as service provider
run: sed -i '$i\$app->register(Illuminate\\Redis\\RedisServiceProvider::class);' bootstrap/app.php

- name: Run Migration
run: php artisan migrate -v
run: php artisan migrate --database=testing -v
env:
DB_HOST: "127.0.0.1"
DB_TEST_DATABASE: "dev_he4rtbot"
DB_DATABASE: "dev_he4rtbot"
DB_PORT: ${{ job.services.mysql.ports['3306'] }}
REDIS_PORT: ${{ job.services.redis.ports['6379'] }}

- name: Test with phpunit
run: vendor/bin/phpunit --coverage-text
env:
DB_HOST: "127.0.0.1"
DB_TEST_DATABASE: "dev_he4rtbot"
DB_DATABASE: "dev_he4rtbot"
DB_PORT: ${{ job.services.mysql.ports['3306'] }}
REDIS_PORT: ${{ job.services.redis.ports['6379'] }}
21 changes: 16 additions & 5 deletions .gitignore
@@ -1,9 +1,20 @@
/node_modules
/public/build
/public/hot
/public/storage
/storage/*.key
/vendor
/.idea
Homestead.json
Homestead.yaml
.env
.env.testing
.env.backup
.env.production
.phpunit.result.cache
/.scribe
/public/docs
Homestead.json
Homestead.yaml
auth.json
npm-debug.log
yarn-error.log
/.fleet
/.idea
/.vscode
/.idea/