[BE] 약속 잠금 API 추가 #113
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 CI | |
on: | |
pull_request: | |
branches: ['develop'] | |
permissions: | |
checks: write | |
pull-requests: write | |
jobs: | |
detect-changes: | |
runs-on: ubuntu-latest | |
permissions: | |
pull-requests: read | |
outputs: | |
backend: ${{ steps.filter.outputs.backend }} | |
frontend: ${{ steps.filter.outputs.frontend }} | |
steps: | |
- uses: dorny/paths-filter@v3 | |
id: filter | |
with: | |
filters: | | |
backend: | |
- 'backend/**' | |
frontend: | |
- 'frontend/**' | |
list-files: 'csv' | |
fe-test: | |
needs: detect-changes | |
if: ${{ needs.detect-changes.outputs.frontend == 'true' }} | |
runs-on: ubuntu-latest | |
defaults: | |
run: | |
shell: bash | |
working-directory: ./frontend | |
steps: | |
- name: 모모 레파지토리의 코드를 가져와요 :) | |
uses: actions/checkout@v4 | |
- name: 노드 버젼을 설정해요 :) | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 'lts/*' | |
- name: 이전 의존성을 저장해둔게 있나~? 확인해요 :) | |
id: cache | |
uses: actions/cache@v4 | |
with: | |
path: 'frontend/node_modules' | |
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }} | |
restore-keys: | | |
${{ runner.os }}-node- | |
${{ runner.os }} | |
- name: package-lock.json을 활용해서 의존성을 깨끗하게 설치해요 :) | |
if: steps.cache.outputs.cache-hit != 'true' | |
run: npm ci | |
- name: RTL을 실행해요 :) | |
run: npm run test -- --passWithNoTests | |
- name: 테스트 결과를 PR에 코멘트로 등록해요 :) | |
uses: EnricoMi/publish-unit-test-result-action@v2 | |
if: always() | |
with: | |
files: frontend/reports/**/*.xml |