Files
caro/.github/workflows/Build.yml
T
tiennm99 e8c08139db ci: modernize GitHub Actions, add Pages deployment
- Replace outdated Build.yml (v2 actions, JDK 1.8, 3-OS matrix)
  with modern workflow (v4 actions, JDK 21, single ubuntu runner)
- Add separate web client build job
- Add deploy-pages.yml for auto-deploying web-client to GitHub Pages
  on push to master (web-client/** changes only)
- Set Vite base path to /caro/ for GitHub Pages compatibility
2026-04-10 10:29:36 +07:00

39 lines
859 B
YAML

name: Build & Test
on:
push:
branches: [master]
paths-ignore: ['**/*.md', '.gitignore']
pull_request:
branches: [master]
paths-ignore: ['**/*.md', '.gitignore']
jobs:
build-server:
name: Build Server (Java)
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-java@v4
with:
distribution: temurin
java-version: 21
cache: maven
- run: mvn clean verify
build-web-client:
name: Build Web Client
runs-on: ubuntu-latest
defaults:
run:
working-directory: web-client
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 22
cache: npm
cache-dependency-path: web-client/package-lock.json
- run: npm ci
- run: npm run build