Enable auth-service/api-gateway on production, build their images in CI
This commit is contained in:
@@ -102,3 +102,28 @@ jobs:
|
||||
|
||||
- name: Build
|
||||
run: pnpm --filter @duoc-thu/web build
|
||||
|
||||
auth-and-gateway:
|
||||
name: auth-service + api-gateway — lint + build + test
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
- uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: "20"
|
||||
|
||||
- name: Enable pnpm
|
||||
run: corepack enable
|
||||
|
||||
- name: Install
|
||||
run: pnpm install --frozen-lockfile
|
||||
|
||||
- name: Lint
|
||||
run: pnpm --filter @duoc-thu/auth-service --filter @duoc-thu/api-gateway lint
|
||||
|
||||
- name: Build
|
||||
run: pnpm --filter @duoc-thu/auth-service --filter @duoc-thu/api-gateway build
|
||||
|
||||
- name: Test
|
||||
run: pnpm --filter @duoc-thu/auth-service --filter @duoc-thu/api-gateway test
|
||||
|
||||
Reference in New Issue
Block a user