Skip to content

Chore: 브라우저 탭 타이틀 및 아이콘 변경 #78

Chore: 브라우저 탭 타이틀 및 아이콘 변경

Chore: 브라우저 탭 타이틀 및 아이콘 변경 #78

Workflow file for this run

name: CI
on:
push:
branches: ["feature"]
pull_request:
branches: ["feature"]
env:
SECRET_KEY: ${{ secrets.SECRET_KEY }}
DB_USERNAME: ${{ secrets.DB_USERNAME }}
DB_DATABASE: ${{ secrets.DB_DATABASE }}
DB_USER_PASSWORD: ${{ secrets.DB_USER_PASSWORD }}
DB_ROOT_PASSWORD: ${{ secrets.DB_ROOT_PASSWORD }}
RABBITMQ_DEFAULT_USER: ${{ secrets.RABBITMQ_DEFAULT_USER }}
RABBITMQ_DEFAULT_PASS: ${{ secrets.RABBITMQ_DEFAULT_PASS }}
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
NAVER_CLIENT_ID: ${{ secrets.NAVER_CLIENT_ID }}
NAVER_CLIENT_SECRET: ${{ secrets.NAVER_CLIENT_SECRET }}
USE_SQLITE: ${{ secrets.USE_SQLITE }}
jobs:
backend:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Python 3.11
uses: actions/setup-python@v2
with:
python-version: 3.11
- name: Install pipenv
run: python -m pip install pipenv
- name: Cache dependencies
uses: actions/cache@v2
with:
path: ~/.local/share/virtualenvs
key: ${{ runner.os }}-pipenv-${{ hashFiles('**/Pipfile.lock') }}
restore-keys: ${{ runner.os }}-pipenv-
- name: Install dependencies
working-directory: backend
run: pipenv install
- name: Run tests
working-directory: backend
run: |
pipenv run python manage.py makemigrations
pipenv run python manage.py migrate
pipenv run python manage.py test
frontend:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Cache frontend packages
uses: actions/cache@v3
with:
path: frontend/node_modules
key: ${{ runner.os }}-frontend-${{ hashFiles('frontend/package-lock.json') }}
restore-keys: ${{ runner.os }}-frontend-
- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: 16
- name: Install packages
working-directory: frontend
run: npm ci
- name: Prettier
working-directory: frontend
run: npm run format
- name: ESLint
working-directory: frontend
run: npm run lint