Skip to content

Commit

Permalink
Merge pull request #19 from 2amigos/development
Browse files Browse the repository at this point in the history
Development-->master
  • Loading branch information
2amjsouza authored Jan 20, 2024
2 parents 8f409ae + d620381 commit 25eb714
Show file tree
Hide file tree
Showing 88 changed files with 2,258 additions and 3,259 deletions.
37 changes: 37 additions & 0 deletions .env.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
MESSAGE_BROKER=redis
MAIL_TRANSPORT=smtp

REDIS_HOST=null
REDS_PORT=
REDIS_USER=
REDIS_PASSWORD=

SQS_KEY=
SQS_SECRET=
SQS_REGION=

BEANSTALKD_HOST=
BEANSTALKD_PORT=

PDO_USER=
PDO_PASSWORD=
PDO_HOST=localhost
PDO_PORT=3306
PDO_DBNAME=

RABBITMQ_HOST=localhost
RABBITMQ_PORT=5672
RABBITMQ_USER=guest
RABBITMQ_PASSWORD=guest

MAILER_SMTP_HOST=
MAILER_SMTP_PORT=
MAILER_SMTP_USER=
MAILER_SMTP_PASSWORD=
MAILER_SMTP_TLS=false

SENDMAIL_DSN=sendmail://default

MAILER_DSN=native://default

MAIL_CHARSET=utf-8
37 changes: 37 additions & 0 deletions .env.testing
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
MESSAGE_BROKER=redis
MAIL_TRANSPORT=smtp

REDIS_HOST=
REDS_PORT=
REDIS_USER=
REDIS_PASSWORD=

SQS_KEY=xxx
SQS_SECRET=yyy
SQS_REGION=us-west-2

BEANSTALKD_HOST=
BEANSTALKD_PORT=

PDO_USER=root
PDO_PASSWORD=root
PDO_HOST=localhost
PDO_PORT=3306
PDO_DBNAME=mail_queue_test

RABBITMQ_HOST=localhost
RABBITMQ_PORT=5672
RABBITMQ_USER=guest
RABBITMQ_PASSWORD=guest

MAILER_SMTP_HOST=127.0.0.1
MAILER_SMTP_PORT=25
MAILER_SMTP_USER=mailing@test.me
MAILER_SMTP_PASSWORD=1234
MAILER_SMTP_TLS=false

SENDMAIL_DSN=sendmail://null

MAIL_DSN=native://null

MAIL_CHARSET=utf-8
28 changes: 28 additions & 0 deletions .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
---
name: Bug report
about: Create a report to help us improve
title: ''
labels: bug
assignees: sJonatas

---

**Describe the bug**
A clear and concise description of what the bug is.

**To Reproduce**
Steps to reproduce the behavior:

**Code**
Provide code sample and context where the bug occurred, as related configurations for your case.

**Expected behavior**
A clear and concise description of what you expected to happen.

**Desktop (please complete the following information):**
- OS: [e.g. Ubuntu 22.04]
- PHP Version: [e.g. 8.1.6]
- Version [e.g. 1.0]

**Additional context**
Add any other context about the problem here.
20 changes: 20 additions & 0 deletions .github/ISSUE_TEMPLATE/feature.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
---
name: Feature
about: Suggest an idea for this project
title: ''
labels: ''
assignees: sJonatas

---

**Is your feature request related to a problem? Please describe.**
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

**Describe the solution you'd like**
A clear and concise description of what you want to happen.

**Describe alternatives you've considered**
A clear and concise description of any alternative solutions or features you've considered.

**Additional context**
Add any other context or screenshots about the feature request here.
17 changes: 17 additions & 0 deletions .github/ISSUE_TEMPLATE/help.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
---
name: Help
about: Help wanted
title: "[HELP]"
labels: help wanted
assignees: sJonatas

---

**Subject**
What's the subject do you need help with?

**Description**
Give a clear description of what you're trying to achieve and what's the blocker.

**Code**
Provide meaningful peace of code and related configurations you have set on your project.
38 changes: 38 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: tests
on: [push]

jobs:
test:
name: PHPUnit
runs-on: ubuntu-latest
env:
DB_DATABASE: mail_queue_test
DB_USER: root
DB_PASSWORD: root

steps:
- name: checkout repo
uses: actions/checkout@v3

- name: setup enviroment
uses: shivammathur/setup-php@v2
with:
php-version: '8.1'

- name: Install dependencies
run: composer install


- name: Set up MySQL
run: |
sudo /etc/init.d/mysql start
mysql -e 'CREATE DATABASE ${{ env.DB_DATABASE }};' -u${{ env.DB_USER }} -p${{ env.DB_PASSWORD }}
- name: Run unit tests
run: ./vendor/bin/phpunit --coverage-clover ./tests/_output/coverage.xml

- name: Upload coverage reports to Codacy
uses: codacy/codacy-coverage-reporter-action@v1
with:
project-token: ${{ secrets.CODACY_PROJECT_TOKEN }}
coverage-reports: ./tests/_output/coverage.xml
5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,8 @@ Thumbs.db
nbproject
switch
index
.env
.phpunit.result.cache
.composer.lock
.phpunit.cache
composer.lock
25 changes: 0 additions & 25 deletions .travis.yml

This file was deleted.

Loading

0 comments on commit 25eb714

Please sign in to comment.