-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
fe1a13e
commit d60a02c
Showing
3 changed files
with
59 additions
and
43 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
name: Setup | ||
description: 'Node.js와 Yarn 패키지를 설치합니다.' | ||
runs: | ||
using: 'composite' | ||
steps: | ||
- name: Node.js 설정 | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: 18.x | ||
|
||
- name: Yarn 패키지 설치 | ||
run: yarn | ||
shell: bash |
This file was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
name: Build & Test | ||
|
||
on: | ||
pull_request: | ||
branches: ['main'] | ||
|
||
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 | ||
- name: Express 앱 빌드 | ||
run: yarn slack build | ||
|
||
- 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 |