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
50 changes: 0 additions & 50 deletions .github/workflows/.go-docker.yml

This file was deleted.

74 changes: 74 additions & 0 deletions .github/workflows/ci-cd.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,74 @@
name: CI/CD

on:
push:
branches: [main]
pull_request:
branches: [main]

jobs:
backend:
name: Backend Build & Test
runs-on: ubuntu-latest
defaults:
run:
working-directory: backend

steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: "1.21"
cache: true
cache-dependency-path: backend/go.sum

- name: Download dependencies
run: go mod download

- name: Verify formatting
run: test -z "$(gofmt -l .)"

- name: Run tests
run: go test ./...

- name: Build server
run: go build -v ./cmd/server

frontend:
name: Frontend Build
runs-on: ubuntu-latest
defaults:
run:
working-directory: frontend

steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: "20"
cache: npm
cache-dependency-path: frontend/package-lock.json

- name: Install dependencies
run: npm ci

- name: Build frontend
run: npm run build

docker:
name: Docker Compose Build
runs-on: ubuntu-latest
needs: [backend, frontend]

steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Build Docker images
run: docker compose -f docker-compose.yml build
7 changes: 7 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,11 +1,18 @@
# Binary
chat-server
backend/chat-server

# Database
chat.db
backend/chat.db

# Uploads
uploads/
backend/uploads/

# Frontend
frontend/node_modules/
frontend/dist/

# IDE
.vscode/
Expand Down
20 changes: 0 additions & 20 deletions LOCATION_SHARING.md

This file was deleted.

Loading
Loading