Skip to content

Commit

Permalink
chore: ci 스크립트 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
gominzip authored Nov 12, 2024
1 parent 5719eb9 commit 9922be8
Showing 1 changed file with 48 additions and 0 deletions.
48 changes: 48 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
name: CI Pipeline

on:
push:
branches:
- dev
- dev-fe
- dev-be
pull_request:
branches:
- dev
- dev-fe
- dev-be

jobs:
build:
runs-on: ubuntu-latest

strategy:
matrix:
workspace: [backend, frontend, shared]

steps:
- name: Checkout repository
uses: actions/checkout@v3

- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: '20'

- name: Install dependencies
run: yarn install

- name: Build ${{ matrix.workspace }}
run: |
cd ${{ matrix.workspace }}
yarn build
- name: Lint ${{ matrix.workspace }}
run: |
cd ${{ matrix.workspace }}
yarn lint || exit 1 # Lint 실패 시 종료
- name: TypeScript Check ${{ matrix.workspace }}
run: |
cd ${{ matrix.workspace }}
yarn tsc --noEmit || exit 1 # 빌드하지 않고 타입 오류만 체크

0 comments on commit 9922be8

Please sign in to comment.