-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
메인 브랜치 업데이트 - [FE] mock api를 활용한 데모 버전 github action 생성 (#263)
* [FE] mock api를 활용한 데모 버전 github action 생성 (#261) * Chore: faker.js 설치 * Refactor: mockUtil함수에 getResponseWithError 추가 * Refactor: mock.user faker.js적용 * Rename: style -> comment.style.js * Refactor Mock 데이터 faker.js적용 * Fix : 프로필 이미지 src에 옵셔널 체이닝 적용 * Design: 무한스크롤 loader를 다음 줄이 아닌 배열의 마지막 위치로 수정 * Build: msw를 사용하는 데모 버전 * Build: fe-demo 깃허브 액션 * Fix: 스토리북 mock데이터 수정 * Feat: 데모 버전 컴포넌트 * Docs: 리드미에 데모 페이지 반영 * Build: change Chromatic target branch develop -> fe-demo * Build: fe-demo, chromatic github-action working-directory 수정 Fe-demo: env로 변수 설정 chromatic: defaults-run 설정 * [FE] 데모 및 chromatic 배포 github action 에러 수정 (#262) * Fix: mock.name.avatar 에러 수정 함수 실행문으로 변경 * Build: fe-demo, chromatic github-action working-directory 수정 Fe-demo: env로 변수 설정 chromatic: defaults-run 설정 * Build: fe-demo에서 default run 적용 * Build: fe-demo -> webapp이동 명령어 제거 * Build: cache 추가 * Build: github action unbuntu 버전 변경 * Build: fe-demo명령어에 AWS_DEFAULT_REGION 추가 * Build: 타겟브랜치 및 실행경로 설정
- Loading branch information
1 parent
6efd840
commit 8028092
Showing
60 changed files
with
468 additions
and
1,311 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
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,65 @@ | ||
name: sub-branch | ||
|
||
# Event for the workflow | ||
on: | ||
push: | ||
branches: ['develop'] | ||
paths: | ||
- './webapp/**' | ||
pull_request: | ||
branches: ['develop'] | ||
paths: | ||
- './webapp/**' | ||
jobs: | ||
build: | ||
runs-on: ubuntu-18.04 | ||
defaults: | ||
run: | ||
working-directory: ./webapp | ||
|
||
steps: | ||
- uses: actions/checkout@v1 | ||
- name: Setup Node | ||
uses: actions/setup-node@v2 | ||
with: | ||
node-version: '16' | ||
|
||
- name: Setting .env | ||
run: | | ||
echo "REACT_APP_SERVER_API=${{secrets.REACT_APP_SERVER_API}}" >> .env | ||
cat .env | ||
- name: Cache node modules | ||
id: cache-npm | ||
uses: actions/cache@v3 | ||
env: | ||
cache-name: cache-node-modules | ||
with: | ||
# npm cache files are stored in `~/.npm` on Linux/macOS | ||
path: ~/.npm | ||
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }} | ||
restore-keys: | | ||
${{ runner.os }}-build-${{ env.cache-name }}- | ||
${{ runner.os }}-build- | ||
${{ runner.os }}- | ||
- if: ${{ steps.cache-npm.outputs.cache-hit != 'true' }} | ||
name: List the state of node modules | ||
continue-on-error: true | ||
run: npm list | ||
|
||
- name: npm Install | ||
run: npm install | ||
|
||
- name: npm build | ||
run: npm run build-demo | ||
env: | ||
CI: '' | ||
|
||
- name: Deploy | ||
env: | ||
AWS_ACCESS_KEY_ID: ${{ secrets.FE_DEMO_AWS_ACCESS_KEY_ID }} | ||
AWS_SECRET_ACCESS_KEY: ${{ secrets.FE_DEMO_AWS_SECRET_ACCESS_KEY }} | ||
AWS_DEFAULT_REGION: ap-northeast-2 | ||
run: | | ||
aws s3 sync ./build s3://conect-demo |
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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
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
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
2 changes: 1 addition & 1 deletion
2
webapp/src/components/ComentContainer/CommentElement/CommentButtonContainer.jsx
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
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
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
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
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
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
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
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
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
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
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
2 changes: 1 addition & 1 deletion
2
webapp/src/components/ComentContainer/CommentList/Nested.CommentList.jsx
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
Oops, something went wrong.