API 모듈 추상화 (issue #20) #15
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: CI | |
on: | |
pull_request: | |
branches: [main] | |
jobs: | |
frontend-tests: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v3 | |
- name: Set up Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: "20" | |
- name: Cache Node.js modules | |
uses: actions/cache@v4 | |
with: | |
path: front/node_modules | |
key: ${{ runner.os }}-node-${{ hashFiles('**/front/package-lock.json') }} | |
restore-keys: | | |
${{ runner.os }}-node- | |
- name: Install frontend dependencies | |
working-directory: front | |
run: npm install | |
- name: Run frontend tests | |
working-directory: front | |
run: npm test |