Skip to content

feature: Express에 Jest 설치 및 몇 가지 단위 테스트 작성 #7

feature: Express에 Jest 설치 및 몇 가지 단위 테스트 작성

feature: Express에 Jest 설치 및 몇 가지 단위 테스트 작성 #7

Workflow file for this run

name: Build/Test on PR
on:
pull_request:
branches: ['chore/224-express-directory']
jobs:
call-hello:
uses: ./.github/workflows/setup.yml
hello:
runs-on: ubuntu-latest
needs: call-hello
steps:
- uses: actions/checkout@v3
- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: 18.x
cache: yarn
- run: echo ${{ needs.call-hello.outputs.a }} ${{ needs.call-hello.outputs.b }}
action-test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: ./.github/actions/setup
- run: ls -al
- run: yarn
- run: yarn web build
build-react:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: 18.x
cache: yarn
- run: yarn
- run: yarn web build
build-express:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: 18.x
cache: yarn
- run: yarn
- run: yarn slack build
build-api-docs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: 18.x
cache: yarn
- run: yarn
- run: yarn api-docs build
test-express:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: 18.x
cache: yarn
- uses: ./.github/actions/env-express
# - name: Setting .env
# run: |
# echo "${{ secrets.EXPRESS_ENV_FILE }}" >> .env
# mv .env packages/slack/.env
# cat packages/slack/.env
- run: yarn
- run: yarn slack test