Skip to content

[Feature] - touroot v1.3.3 #14

[Feature] - touroot v1.3.3

[Feature] - touroot v1.3.3 #14

name: 'frontend-ci'
on:
pull_request:
branches:
- production/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:production
- 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 }}