Skip to content

Feature/#085 PR 시 Docker 빌드 테스트 수행 #50

Feature/#085 PR 시 Docker 빌드 테스트 수행

Feature/#085 PR 시 Docker 빌드 테스트 수행 #50

Workflow file for this run

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
test_building_docker_image:
name: Test Building Docker Image
runs-on: ubuntu-latest
steps:
# Checkout the repository
- name: Checkout Repository
uses: actions/checkout@v4
# Test Building Docker Images
- name: Test Building Docker Images
env:
NODE_ENV: production
MONGO_URI: ${{ secrets.MONGO_URI }}
run: |
docker-compose build