Skip to content

Commit

Permalink
chore: ci 스크립트 작성 #457
Browse files Browse the repository at this point in the history
  • Loading branch information
rbgksqkr committed Jan 5, 2025
1 parent 990f80b commit fcef643
Showing 1 changed file with 43 additions and 0 deletions.
43 changes: 43 additions & 0 deletions .github/workflows/fe-ci-admin.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: FE Build for admin

on:
pull_request:
branches:
- develop
paths:
- "frontend-admin/**"

jobs:
build-and-test:
runs-on: ubuntu-latest

defaults:
run:
working-directory: ./frontend-admin

steps:
- uses: actions/checkout@v4

- name: Use Node.js
uses: actions/setup-node@v4
with:
node-version: "20"
cache: "pnpm"
cache-dependency-path: frontend-admin/pnpm-lock.yaml

- name: Install Dependencies
run: npm install
working-directory: ./frontend-admin

- name: Cache node_modules
id: cache
uses: actions/cache@v3
with:
path: "**/node_modules"
key: ${{ runner.os }}-node-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-node-
- name: Build
run: pnpm build
working-directory: ./frontend-admin

0 comments on commit fcef643

Please sign in to comment.