[TEST] 테스트 성능 개선 #131
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: FE CI for dev | |
on: | |
pull_request: | |
branches: | |
- develop | |
paths: | |
- "frontend/**" | |
jobs: | |
build-and-test: | |
timeout-minutes: 4 | |
runs-on: [self-hosted, linux, ARM64, dev] | |
defaults: | |
run: | |
working-directory: ./frontend | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Use Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: "20" | |
cache: "npm" | |
cache-dependency-path: frontend/package-lock.json | |
- name: Install Dependencies | |
run: npm install | |
working-directory: ./frontend | |
- 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: Build | |
run: npm run build-dev | |
working-directory: ./frontend | |
- name: Test | |
run: npm test | |
working-directory: ./frontend |