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
Empty file added .github/copilot-instructions.md
Empty file.
82 changes: 82 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,82 @@
name: CI

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

concurrency:
group: ci-${{ github.ref }}
cancel-in-progress: true

jobs:
backend:
name: Backend Tests
runs-on: ubuntu-latest

services:
mysql:
image: mysql:8.4
env:
MYSQL_ROOT_PASSWORD: root
MYSQL_DATABASE: jobtrack_test
ports:
- 3306:3306
options: >-
--health-cmd="mysqladmin ping -h localhost"
--health-interval=10s
--health-timeout=5s
--health-retries=5

env:
SPRING_PROFILES_ACTIVE: dev
DB_URL: jdbc:mysql://127.0.0.1:3306/jobtrack_test?createDatabaseIfNotExist=true&useSSL=false&allowPublicKeyRetrieval=true&serverTimezone=UTC
DB_USERNAME: root
DB_PASSWORD: root
JWT_SECRET: test-secret-key-at-least-32-characters-long-for-testing-only

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

- name: Set up JDK 17
uses: actions/setup-java@v4
with:
java-version: '17'
distribution: 'temurin'
cache: maven
cache-dependency-path: backend/pom.xml

- name: Run Maven tests
working-directory: backend
run: |
chmod +x ./mvnw
./mvnw test

frontend:
name: Frontend Lint & Build
runs-on: ubuntu-latest

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

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

- name: Install dependencies
working-directory: frontend
run: npm ci

- name: Run lint
working-directory: frontend
run: npm run lint

- name: Run build
working-directory: frontend
run: npm run build
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,4 @@ backend/uploads/cvs/
.trae/
.continue/
.codebuddy/
.github/
.github/prompts/
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# JobTrack

[![CI](https://github.com/itkhair05/Jobtrack-System/actions/workflows/ci.yml/badge.svg)](https://github.com/itkhair05/Jobtrack-System/actions/workflows/ci.yml)

Công cụ theo dõi quá trình ứng tuyển việc làm full-stack, hỗ trợ quản lý toàn bộ vòng đời ứng tuyển từ giai đoạn lưu trữ hồ sơ đến khi nhận việc.

![Java](https://img.shields.io/badge/Java-17-orange?logo=openjdk&logoColor=white)
Expand Down
Loading