Skip to content

Merge pull request #263 from boostcampwm-2024/refactor/db-#238 #452

Merge pull request #263 from boostcampwm-2024/refactor/db-#238

Merge pull request #263 from boostcampwm-2024/refactor/db-#238 #452

Workflow file for this run

name: CI
on:
push:
branches: [back/main, front/main]
pull_request:
branches: [back/main, front/main]
jobs:
BE-test-and-build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: '20'
cache: 'npm'
cache-dependency-path: ./BE/package-lock.json
- name: Install dependencies
working-directory: ./BE
run: npm ci
- name: Run tests
run: npm test
working-directory: ./BE
env:
CI: true
- name: Run linter
working-directory: ./BE
run: npm run lint
- name: Build application
working-directory: ./BE
run: npm run build
FE-test-and-build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: '20'
cache: 'npm'
cache-dependency-path: ./FE/package-lock.json
- name: Install dependencies
working-directory: ./FE
run: npm ci
- name: Run linter
working-directory: ./FE
run: npm run lint
- name: Build application
working-directory: ./FE
run: npm run build