Skip to content

Commit

Permalink
chore: pull-request 리팩토링
Browse files Browse the repository at this point in the history
  • Loading branch information
bbearcookie committed Jan 1, 2024
1 parent fe1a13e commit d60a02c
Show file tree
Hide file tree
Showing 3 changed files with 59 additions and 43 deletions.
13 changes: 13 additions & 0 deletions .github/actions/setup/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
name: Setup
description: 'Node.js와 Yarn 패키지를 설치합니다.'
runs:
using: 'composite'
steps:
- name: Node.js 설정
uses: actions/setup-node@v3
with:
node-version: 18.x

- name: Yarn 패키지 설치
run: yarn
shell: bash
43 changes: 0 additions & 43 deletions .github/workflows/build-test.yml

This file was deleted.

46 changes: 46 additions & 0 deletions .github/workflows/pull-request.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
name: Build & Test

on:
pull_request:
branches: ['main']

jobs:
react:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

- name: Node.js 및 Yarn 설치
uses: ./.github/actions/setup

- name: React 앱 빌드
run: yarn web build
express:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

- name: Node.js 및 Yarn 설치
uses: ./.github/actions/setup

- name: env 파일 생성
run: |
echo "${{ secrets.EXPRESS_ENV_FILE }}" >> .env
mv .env packages/slack/.env
cat packages/slack/.env
- name: Express 앱 빌드
run: yarn slack build

- name: Express 앱 테스트 코드 실행
run: yarn slack test
api-docs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

- name: Node.js 및 Yarn 설치
uses: ./.github/actions/setup

- name: API 문서 빌드
run: yarn api-docs build

0 comments on commit d60a02c

Please sign in to comment.