Skip to content

Commit

Permalink
fix: [BE] github action ci/cd 분리
Browse files Browse the repository at this point in the history
github action ci/cd 파일 분리
  • Loading branch information
HKLeeeee committed Nov 13, 2023
1 parent d4bd369 commit ef6b1ba
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 7 deletions.
Original file line number Diff line number Diff line change
@@ -1,10 +1,14 @@
name: backEnd API server CI/CD
on:
pull_request:
branches: [BE/release]
push:
branches: [BE/release, main]

permissions:
contents: read

jobs:
api-server-ci:
runs-on: ubuntu-20.04
runs-on: ubuntu-latest
steps:
- name: ✅ 코드 체크아웃
uses: actions/checkout@v3
Expand All @@ -30,10 +34,6 @@ jobs:
working-directory: ./backEnd/api
run: npm install

- name: ✅ 유닛 테스트
working-directory: ./backEnd/api
run: npm test

- name: 📦 프로젝트 빌드
working-directory: ./backEnd/api
run: npm run build
Expand Down
31 changes: 31 additions & 0 deletions .github/workflows/back-api-ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: backEnd API server CI/CD
on:
pull_request:
branches: [BE/release, dev, main]

permissions:
contents: read

jobs:
running-server:
runs-on: ubuntu-latest
steps:
- name: ✅ 코드 체크아웃
uses: actions/checkout@v3

- name : 👻 노드 설정
uses : actions/setup-node@v3
with:
node-version: '20'

- name: ⬇️ 의존성 설치
working-directory: ./backEnd/api
run: npm install

- name: ✅ 유닛 테스트
working-directory: ./backEnd/api
run: npm test

- name: 📦 프로젝트 빌드
working-directory: ./backEnd/api
run: npm run build

0 comments on commit ef6b1ba

Please sign in to comment.