Skip to content

[Feature] - ํ”Œ๋กœํŒ… ๋ฒ„ํŠผ์— ์—ฌํ–‰ ๊ณ„ํš ์ž‘์„ฑ ์ถ”๊ฐ€ #140

[Feature] - ํ”Œ๋กœํŒ… ๋ฒ„ํŠผ์— ์—ฌํ–‰ ๊ณ„ํš ์ž‘์„ฑ ์ถ”๊ฐ€

[Feature] - ํ”Œ๋กœํŒ… ๋ฒ„ํŠผ์— ์—ฌํ–‰ ๊ณ„ํš ์ž‘์„ฑ ์ถ”๊ฐ€ #140

Workflow file for this run

name: 'frontend-ci'
on:
pull_request:
branches:
- develop/fe
paths:
- frontend/**
defaults:
run:
working-directory: frontend
jobs:
frontend-ci:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: ๋…ธ๋“œ ๋ฒ„์ „ ์„ค์ •
uses: actions/setup-node@v4
with:
node-version: '20.15.1'
- name: ์˜์กด์„ฑ ์บ์‹ฑ
id: cache
uses: actions/cache@v4
with:
path: frontend/node_modules
key: ${{ runner.os }}-node-${{ hashFiles('**/yarn.lock') }}
- name: ์˜์กด์„ฑ ์„ค์น˜
if: steps.cache.outputs.cache-hit != 'true'
run: yarn
- name: eslint ์‹คํ–‰
run: yarn lint
- name: ๋นŒ๋“œ ์‹คํ–‰
run: yarn build
- name: stylelint ์‹คํ–‰
run: yarn lint:styled
- name: ํ…Œ์ŠคํŠธ ์‹คํ–‰
run: yarn test
- name: ํ…Œ์ŠคํŠธ ๊ฒฐ๊ณผ PR์— ์ฝ”๋ฉ˜ํŠธ ๋“ฑ๋ก
uses: EnricoMi/publish-unit-test-result-action@v2
if: always()
with:
files: frontend/test-results/results.xml
- name: ํ…Œ์ŠคํŠธ ์‹คํŒจ ์‹œ, ์‹คํŒจํ•œ ์ฝ”๋“œ ๋ผ์ธ์— Check ์ฝ”๋ฉ˜ํŠธ ๋“ฑ๋ก
uses: mikepenz/action-junit-report@v3
if: always()
with:
report_paths: frontend/test-results/results.xml
token: ${{ secrets.GITHUB_TOKEN }}