feature: Express에 Jest 설치 및 몇 가지 단위 테스트 작성 #4
Workflow file for this run
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: Build & Test | |
on: | |
pull_request: | |
branches: ['chore/224-express-directory'] | |
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 | |
- run: ls -al packages/slack | |
- name: Express 앱 빌드 | |
run: yarn slack build | |
- run: ls -al packages/slack | |
- name: Express 앱 테스트 코드 실행 | |
run: yarn slack test | |
why: | |
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 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 |