Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
8 changes: 5 additions & 3 deletions .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,11 @@ REDIS_HOST=127.0.0.1
REDIS_PASSWORD=null
REDIS_PORT=6379

MAIL_MAILER=log
MAIL_HOST=127.0.0.1
MAIL_PORT=2525
# change accordingly if you are not using Laravel Sail
FORWARD_MAILPIT_PORT=2525
MAIL_MAILER=smtp
MAIL_HOST=mailpit
MAIL_PORT="${FORWARD_MAILPIT_PORT:-2525}"
MAIL_USERNAME=null
MAIL_PASSWORD=null
MAIL_ENCRYPTION=null
Expand Down
14 changes: 9 additions & 5 deletions .github/workflows/build-and-deploy.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,18 @@
name: Build and deploy Application

# on:
# push:
# branches:
# - prod
# workflow_dispatch:
on:
push:
branches:
- prod
workflow_dispatch:
workflow_run:
workflows: [Tests]
types: [completed]

jobs:
build:
runs-on: ubuntu-latest
if: ${{ github.event.workflow_run.conclusion == 'success' && github.event.workflow_run.head_branch == 'prod' }} # Run only if the first workflow succeeded and push was to prod
steps:
- uses: actions/checkout@v4
- name: Setup PHP
Expand Down
32 changes: 32 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Tests

on: [push]
jobs:
tests:
runs-on: ubuntu-latest
env:
APP_URL: "http://127.0.0.1:8000"
DB_USERNAME: root
DB_DATABASE: tasktango
DB_HOST: 127.0.0.1
DB_PASSWORD: root
MAIL_MAILER: log
SUPER_ADMIN_USERNAME: super_admin
SUPER_ADMIN_EMAIL: admin@admin.com
SUPER_ADMIN_PASSWORD: super-secure-password
steps:
- uses: actions/checkout@v4
- name: Prepare The Environment
run: cp .env.example .env
- name: Create Database
run: |
sudo systemctl start mysql
mysql --user="root" --password="root" -e "CREATE DATABASE \`tasktango\` character set UTF8mb4 collate utf8mb4_bin;"
- name: Install Composer Dependencies
run: composer install --no-progress --prefer-dist --optimize-autoloader
- name: Generate Application Key
run: php artisan key:generate
- name: Run Laravel Server
run: php artisan serve --no-reload &
- name: Run Tests
run: php artisan test
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ justfile
.env.testing
.env.production
.phpunit.result.cache
.phpunit*

/public/hot
/public/storage
14 changes: 14 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# See https://pre-commit.com for more information
# See https://pre-commit.com/hooks.html for more hooks
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v5.0.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-yaml
- id: check-added-large-files
- repo: https://github.com/gitleaks/gitleaks
rev: v8.24.0
hooks:
- id: gitleaks
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -93,4 +93,3 @@ Inbox View

![Search](.screenshots/search-functionality.png)
Search Functionality

Loading