Skip to content

Add monorepo GitHub Actions CI with separate backend and frontend jobs#1

Closed
FencyJay wants to merge 1 commit intomasterfrom
codex/load-project-commit-history
Closed

Add monorepo GitHub Actions CI with separate backend and frontend jobs#1
FencyJay wants to merge 1 commit intomasterfrom
codex/load-project-commit-history

Conversation

@FencyJay
Copy link
Copy Markdown
Owner

@FencyJay FencyJay commented Mar 5, 2026

Motivation

  • Consolidate CI for the monorepo to run backend and frontend checks independently.
  • Add support for the work branch and manual triggering via workflow_dispatch, and modernize action versions.
  • Surface CI behavior in the project documentation by adding a CI section to README.md.

Description

  • Rename the workflow to Monorepo CI and add triggers for pushes and PRs to master and work, plus workflow_dispatch for manual runs.
  • Split the single job into backend and frontend jobs and set defaults.working-directory to coder-practice-backend and coder-practice-frontend respectively.
  • Upgrade actions to actions/checkout@v4, actions/setup-java@v4 with Maven caching, and add actions/setup-node@v4 with npm caching and node-version: '20'.
  • Configure the backend to run mvn -B test and the frontend to run npm ci, npm run lint, and npm run build, and add a CI explanation to README.md.

Testing

  • No automated CI runs were executed as part of this configuration change.
  • The added workflow is configured to run backend tests via mvn -B test and frontend checks via npm ci, npm run lint, and npm run build when triggered.

Codex Task

@vercel
Copy link
Copy Markdown

vercel bot commented Mar 5, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
code-practice-frontend Ready Ready Preview, Comment Mar 5, 2026 6:00am

@FencyJay
Copy link
Copy Markdown
Owner Author

FencyJay commented Mar 5, 2026

有问题,不提交

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant