feature: Express에 Jest 설치 및 몇 가지 단위 테스트 작성 #6
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 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 | |
- 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 |