#18 ci(fe): ci 경로 수정 #12
Workflow file for this run
This file contains hidden or 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
| name: Build and Lint | |
| on: | |
| pull_request: | |
| types: [opened, synchronize, reopened] | |
| branches: | |
| - dev | |
| - main | |
| push: | |
| branches: | |
| - fe-ci/cicd | |
| jobs: | |
| build: | |
| name: Build and Test | |
| timeout-minutes: 15 | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Check out code | |
| uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 2 | |
| - uses: pnpm/action-setup@v3 | |
| with: | |
| version: 8 | |
| - name: Setup Node.js | |
| uses: actions/setup-node@v3 | |
| with: | |
| node-version: '18' | |
| - name: Install pnpm | |
| run: npm install -g pnpm | |
| - uses: actions/cache@v4 | |
| id: cache | |
| with: | |
| path: | | |
| node_modules | |
| .pnpm-store | |
| key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }} | |
| restore-keys: | | |
| ${{ runner.os }}-pnpm-store- | |
| - name: Install dependencies | |
| run: | | |
| cd src/frontend | |
| pnpm install --frozen-lockfile --prod # pnpm-lock.yaml 파일을 생성하고 의존성 설치 | |
| pnpm add turbo --save-dev -w | |
| - name: Lint code | |
| run: | | |
| cd src/frontend | |
| pnpm lint | |
| - name: Build project | |
| run: | | |
| cd src/frontend | |
| pnpm build | |
| - name: Build Storybook | |
| run: | | |
| cd src/frontend | |
| pnpm build-storybook |