Skip to content

refactor: Github Actions 워크플로 리팩토링 #8

refactor: Github Actions 워크플로 리팩토링

refactor: Github Actions 워크플로 리팩토링 #8

Workflow file for this run

name: Build & Test
on:
pull_request:
branches: ['main']
jobs:
api-docs-and-react:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Node.js 및 Yarn 설치
uses: ./.github/actions/setup
- name: API 문서 빌드
run: yarn api-docs build
- name: API 문서로부터 타입 및 함수 자동 생성
run: yarn web orval
- 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