Skip to content

Instantly share code, notes, and snippets.

@hongsw
Last active May 16, 2022 01:26
Show Gist options
  • Save hongsw/a79e0c4474c0cbc851d8e09a8c9bf5bb to your computer and use it in GitHub Desktop.
Save hongsw/a79e0c4474c0cbc851d8e09a8c9bf5bb to your computer and use it in GitHub Desktop.
github action 실습용 준비 스크립트
# 프로젝트 생성
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