Skip to content

Feat/#155: 공지사항 링크 관리하는 상수 추가, 공지사항 작성자 크롤링 추가 #205

Feat/#155: 공지사항 링크 관리하는 상수 추가, 공지사항 작성자 크롤링 추가

Feat/#155: 공지사항 링크 관리하는 상수 추가, 공지사항 작성자 크롤링 추가 #205

Workflow file for this run

name: CI Workflow
on:
push:
branches:
- dev
pull_request:
branches:
- '**'
jobs:
docker:
timeout-minutes: 10
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Create .env file
run: |
echo "DATABASE_NAME=${{ secrets.DATABASE_NAME }}" >> .env
echo "DATABASE_PORT=${{ secrets.DATABASE_PORT }}" >> .env
echo "DATABASE_ROOT_PASSWORD=${{ secrets.DATABASE_ROOT_PASSWORD }}" >> .env
echo "DATABASE_USER=${{ secrets.DATABASE_USER }}" >> .env
echo "DATABASE_USER_PASSWORD=${{ secrets.DATABASE_USER_PASSWORD }}" >> .env
echo "SERVER_PORT=${{ secrets.SERVER_PORT }}" >> .env
- name: Start docker container
run: docker-compose -f "docker-compose.yml" up -d --build
- name: Install node
uses: actions/setup-node@v3
with:
node-version: '16'
cache: 'npm'
- name: Install Yarn
run: npm install -g yarn
- name: Install dependencies
run: sudo yarn install
- name: Run tests
run: yarn test
- name: Stop containers
if: always()
run: docker-compose -f "docker-compose.yml" down