Skip to content

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

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

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

Workflow file for this run

name: Build/Test on PR
on:
pull_request:
branches: ['chore/224-express-directory']
env:
EXPRESS_ENV_FILE: ${{ secrets.EXPRESS_ENV_FILE }}
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: ./.github/actions/setup.yml
- run: ls -al
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
- 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