Skip to content

Feature/#117 refactoring #138

Feature/#117 refactoring

Feature/#117 refactoring #138

name: Build Test Check
on:
pull_request:
types: [opened, synchronize, reopened]
branches: [dev]
jobs:
build-test:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: '18.x'
- name: Cache npm dependencies
uses: actions/cache@v3
with:
path: ~/.npm
key: ${{ runner.OS }}-node-${{ hashFiles('**/package-lock.json') }}
- name: Install dependencies
run: npm install
- name: Generate .env in project
run: |
# 추후 환경 변수 넣을 곳
# echo "NEXT_PUBLIC_API_URL=${{ secrets.NEXT_PUBLIC_API_DEV_URL }}" >> .env
- name: Test
run: npm run test
- name: Build
run: npm run build