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
7 changes: 7 additions & 0 deletions .env.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# Database connection
DB_URL=jdbc:postgresql://localhost:5432/ticket_tracker
DB_USER=ticket_user
DB_PASSWORD=change_me

# Resend email API
RESEND_API_KEY=your_resend_api_key_here
23 changes: 22 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,27 @@ jobs:
build:
runs-on: ubuntu-latest

services:
postgres:
image: postgres:16
env:
POSTGRES_USER: ticket_user
POSTGRES_PASSWORD: ticket_password
POSTGRES_DB: ticket_tracker
ports:
- 5432:5432
options: >-
--health-cmd="pg_isready -U ticket_user -d ticket_tracker"
--health-interval=10s
--health-timeout=5s
--health-retries=5

env:
RESEND_API_KEY: dummy-ci-key
DB_URL: jdbc:postgresql://localhost:5432/ticket_tracker
DB_USER: ticket_user
DB_PASSWORD: ticket_password

steps:
- uses: actions/checkout@v4

Expand All @@ -19,4 +40,4 @@ jobs:
java-version: '25'
cache: maven

- run: mvn clean verify
- run: mvn clean verify
5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -36,3 +36,8 @@ build/
### System Files ###
.DS_Store
Thumbs.db

### Environment ###
.env
.env.local
!.env.example
Loading
Loading