Last active
May 16, 2022 01:26
-
-
Save hongsw/a79e0c4474c0cbc851d8e09a8c9bf5bb to your computer and use it in GitHub Desktop.
github action 실습용 준비 스크립트
This file contains hidden or 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
# 프로젝트 생성 | |
npx create-react-app fe-sprint-cicd-github-action-eg | |
cd fe-sprint-cicd-github-action-eg | |
# Github Repo 생성 | |
# gh cli install (참조 : https://github.com/cli/cli) | |
gh repo create codestates-seb/fe-sprint-cicd-github-action-eg ./ | |
gh repo create <자신githubid>/<만들고싶은repo주소> ./ | |
# Test code 추가 (참조 : https://jestjs.io/docs/tutorial-react) | |
npm install --save-dev react-test-renderer | |
npm run test | |
# Github action 설정 | |
mkdir ./.github/workflows | |
code ./.github/workflows/testing.yaml # urclass 참조 | |
# Git Push | |
git add . | |
git commit -m 'my first commit' | |
git push | |
# Github Action으로 가서 잘 동작되는지 확인 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment