-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
github action ci/cd 파일 분리
- Loading branch information
Showing
2 changed files
with
38 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |