refactor: Theme 타입 적용 및 리팩터링 #253
Workflow file for this run
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
name: Frontend Build Test | |
on: | |
push: | |
branches: | |
- develop | |
- main | |
paths: 'frontend/**' | |
pull_request: | |
branches: | |
- develop | |
- main | |
paths: 'frontend/**' | |
defaults: | |
run: | |
working-directory: frontend | |
permissions: | |
pull-requests: write | |
checks: write | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Set up Repository | |
uses: actions/checkout@v3 | |
- name : Set up Node 18.16.0 | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 18.16.0 | |
- name: Cache node_modules | |
id: cache | |
uses: actions/cache@v3 | |
with: | |
path: '**/node_modules' | |
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }} | |
restore-keys: | | |
${{ runner.os }}-node- | |
- name: npm clean install | |
run: npm ci | |
if: steps.cache.outputs.cache-hit != 'true' | |
- name: npm build dev | |
run: npm run build-dev | |
- name: storyBook build | |
run: npm run build-storybook | |
if: always() | |
- name: notificate on slack if build failed | |
uses: 8398a7/action-slack@v3 | |
with: | |
status: ${{ job.status }} | |
author_name: 프론트엔드 빌드 결과 알림 | |
fields: repo, message, commit, author, action, eventName, ref, workflow, job, took | |
env: | |
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL_FRONTEND }} | |
if: always() |