Skip to content

Implement pnpm, turborepo, testcontainers, dockerfile building, github ci#46

Merged
gugu759153 merged 10 commits intodevfrom
pnpm-test
Mar 25, 2025
Merged

Implement pnpm, turborepo, testcontainers, dockerfile building, github ci#46
gugu759153 merged 10 commits intodevfrom
pnpm-test

Conversation

@GXiang314
Copy link
Member

@GXiang314 GXiang314 commented Mar 24, 2025

This pull request includes several changes to improve the build and deployment processes for the backend and frontend services, as well as updates to the configuration and dependencies of these services.

Build and Deployment Improvements:

  • Added .dockerignore files for the backend and frontend services to exclude unnecessary files from Docker builds. (.dockerignore, apps/backend/.dockerignore, apps/frontend/.dockerignore) [1] [2] [3]
  • Created Dockerfiles for the backend and frontend services to streamline the build and deployment processes. (apps/backend/Dockerfile, apps/frontend/Dockerfile) [1] [2]
  • Added GitHub Actions workflows to automate the build and testing processes for the backend, frontend, and heartbeat services. (.github/workflows/build-frontend.yaml, .github/workflows/build-heartbeat.yaml, .github/workflows/build_test-backend.yaml) [1] [2] [3]

Configuration Updates:

  • Updated environment configuration files to reflect new port settings and database host changes. (apps/backend/.env.development, apps/frontend/.env.development) [1] [2]
  • Added link-workspace-packages=true to .npmrc to enable linking of workspace packages. (.npmrc)

Dependency and Script Updates:

  • Updated package.json files for the backend and frontend services to reflect new dependencies and script changes, including the addition of testcontainers and updates to Jest configurations. (apps/backend/package.json, apps/frontend/package.json) [1] [2]
  • Modified import statements to use lodash-es instead of lodash in the frontend service. (apps/frontend/pages/room.vue)

Test Setup and Teardown:

  • Added setup and teardown scripts for Jest to manage the lifecycle of test containers. (apps/backend/test/setup.ts, apps/backend/test/teardown.ts) [1] [2]
  • Removed the old global setup script for Jest. (apps/backend/test/setupGlobal.ts)

These changes collectively enhance the development workflow, improve build efficiency, and ensure a more consistent environment across different stages of development and deployment.

@GXiang314 GXiang314 self-assigned this Mar 24, 2025
@GXiang314 GXiang314 requested a review from gugu759153 March 24, 2025 21:14
@GXiang314 GXiang314 changed the title Implement pnpm, turborepo, testcontainers, dockerfile building Implement pnpm, turborepo, testcontainers, dockerfile building, github ci Mar 24, 2025
@gugu759153
Copy link
Contributor

ok.

@gugu759153 gugu759153 merged commit 74f84ac into dev Mar 25, 2025
3 checks passed
@GXiang314 GXiang314 deleted the pnpm-test branch March 25, 2025 13:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants