Hotfix/#286 스타일 적용된 텍스트 이어서 작성할 때 서버 반영 안되는 문제 해결 #268
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: Lint and Test | |
on: | |
pull_request: | |
branches: | |
- main | |
- dev | |
jobs: | |
lint_and_unit_test: | |
name: Lint and Unit Test | |
runs-on: ubuntu-latest | |
steps: | |
# Checkout the repository | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
# Install pnpm | |
- name: Install pnpm | |
uses: pnpm/action-setup@v4 | |
with: | |
version: 9 | |
run_install: true | |
# Set up Node.js | |
- name: Set up Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: "20" | |
cache: "pnpm" | |
# Run lint | |
- name: Run Lint | |
run: pnpm eslint . | |
# Run Unit tests | |
- name: Run Unit Tests | |
run: pnpm test | |
env: | |
NODE_ENV: development | |
JWT_SECRET: ${{ secrets.JWT_SECRET }} | |
JWT_REFRESH_SECRET: ${{ secrets.JWT_REFRESH_SECRET }} | |
VITE_API_URL: ${{ secrets.VITE_API_URL }} | |
test_building_docker_image: | |
name: Test Building Docker Image | |
runs-on: ubuntu-latest | |
steps: | |
# Checkout the repository | |
- name: Checkout Repository | |
uses: actions/checkout@v4 | |
# Install Docker | |
- name: Install Docker | |
run: | | |
sudo apt-get update | |
sudo apt-get install -y apt-transport-https ca-certificates curl software-properties-common | |
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg | |
echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/docker-archive-keyring.gpg] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null | |
sudo apt-get update | |
sudo apt-get install -y docker-ce docker-ce-cli containerd.io | |
# Install Docker Compose | |
- name: Install Docker Compose | |
run: | | |
sudo curl -L "https://github.com/docker/compose/releases/latest/download/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose | |
sudo chmod +x /usr/local/bin/docker-compose | |
# Test Building Docker Images | |
- name: Test Building Docker Images | |
env: | |
NODE_ENV: production | |
MONGO_URI: ${{ secrets.MONGO_URI }} | |
JWT_SECRET: ${{ secrets.JWT_SECRET }} | |
JWT_REFRESH_SECRET: ${{ secrets.JWT_REFRESH_SECRET }} | |
VITE_API_URL: ${{ secrets.VITE_API_URL }} | |
run: | | |
docker-compose build frontend backend |