Skip to content
This repository was archived by the owner on Jan 19, 2025. It is now read-only.

Commit 3e108ec

Browse files
committed
feat(ci): add Node.js CI workflow for backend and frontend builds; remove outdated Docker and release workflows
- Introduced a new GitHub Actions workflow for continuous integration, handling Node.js builds for both backend and frontend projects. - Implemented caching for pnpm modules to optimize build times. - Removed obsolete Docker and release workflows to streamline CI processes.
1 parent 3f5a281 commit 3e108ec

File tree

4 files changed

+20
-248
lines changed

4 files changed

+20
-248
lines changed
Lines changed: 20 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,12 @@ on:
1010
branches: [main]
1111

1212
jobs:
13-
build:
13+
build-backend:
1414
runs-on: ubuntu-latest
1515

1616
strategy:
1717
matrix:
18-
node-version: [16.x]
18+
node-version: [20.x]
1919

2020
steps:
2121
- uses: actions/checkout@v4
@@ -32,12 +32,13 @@ jobs:
3232
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ matrix.node-version }}-${{ hashFiles('**/pnpm-lock.yaml') }}
3333
restore-keys: |
3434
${{ runner.os }}-build-${{ env.cache-name }}-${{ matrix.node-version }}-${{ hashFiles('**/pnpm-lock.yaml') }}
35-
- uses: pnpm/action-setup@v2.4.0
35+
- uses: pnpm/action-setup@v3
3636
with:
37-
version: 8.x.x
37+
version: latest
3838
run_install: false
3939
- name: Install Dependencies
4040
run: |
41+
cd 'Way Tech+复赛+OpenHealth-开源项目健康度分析平台/open-health-backend'
4142
pnpm i
4243
- name: Build project
4344
run: |
@@ -53,5 +54,18 @@ jobs:
5354
- name: Test Bundle Server
5455
run: |
5556
bash scripts/workflow/test-server.sh
56-
test:
57-
uses: ./.github/workflows/test.yml
57+
build-frontend:
58+
runs-on: ubuntu-latest
59+
steps:
60+
- uses: actions/checkout@v4
61+
- name: Use Node.js ${{ matrix.node-version }}
62+
uses: actions/setup-node@v4
63+
with:
64+
node-version: ${{ matrix.node-version }}
65+
- name: Install Dependencies
66+
run: |
67+
cd 'Way Tech+复赛+OpenHealth-开源项目健康度分析平台/open-health-frontend'
68+
pnpm i
69+
- name: Build project
70+
run: |
71+
npm run build

Way Tech+复赛+OpenHealth-开源项目健康度分析平台/open-health-backend/.github/workflows/docker.yml

Lines changed: 0 additions & 58 deletions
This file was deleted.

Way Tech+复赛+OpenHealth-开源项目健康度分析平台/open-health-backend/.github/workflows/release.yml

Lines changed: 0 additions & 142 deletions
This file was deleted.

Way Tech+复赛+OpenHealth-开源项目健康度分析平台/open-health-backend/.github/workflows/test.yml

Lines changed: 0 additions & 42 deletions
This file was deleted.

0 commit comments

Comments
 (0)