Skip to content

Awesome-Tomato/actions

Repository files navigation

๋ชฉ์ฐจ

  1. ์†Œ๊ฐœ
  2. Actions
  3. ์‚ฌ์šฉํ•œ ๋„๊ตฌ๋“ค

Github Actions

CodeReview ๋ ˆํฌ์ง€ํ† ๋ฆฌ ๋“ฑ
Awesome-Tomato ์—์„œ ์‚ฌ์šฉํ•  ๊นƒํ—™ ์•ก์…˜๋“ค์ž…๋‹ˆ๋‹ค

Actions

add-deploy-path-to-readme-based-on-path

fullpaths ๋“ค์„ ๋ฐ›์•„์„œ, ํ•ด๋‹น ๊ตฌํ˜„์ฒด์˜ ๋ฐฐํฌ ๋งํฌ๋ฅผ ๊ตฌํ•˜๊ณ 
ํ”„๋กœ์ ํŠธ์˜ README.md ์— ๋ฐฐํฌ ๋งํฌ๋ฅผ ์ถ”๊ฐ€ํ•ฉ๋‹ˆ๋‹ค

inputs

  • fullpaths : README.md ์— ๊ธฐ์žฌ๋  ํ”„๋กœ์ ํŠธ ๊ตฌํ˜„์ฒด๋“ค์˜ ์ ˆ๋Œ€ ๊ฒฝ๋กœ ๋ชฉ๋ก์ž…๋‹ˆ๋‹ค
    ex) ["/abc/project1/maetdol", "/abc/project1/maetdol_react", "/abc/project2/maetdol"]
  • projectBaseUrl : ๊ฐ ๋ฐฐํฌ ๋งํฌ์— ํฌํ•จ๋  base url ์ž…๋‹ˆ๋‹ค
    ex) "https://awesome-tomato.github.io/CodeReview"

outputs

  • ์—†์Œ

build-by-path

fullpaths ๋“ค์„ ๋ฐ›์•„์„œ, ๊ฐ ๊ตฌํ˜„์ฒด์˜ package.json๊ฐ€ ์žˆ์„ ๊ฒฝ์šฐ, build ์ปค๋งจ๋“œ๋ฅผ ์‹คํ–‰ํ•ฉ๋‹ˆ๋‹ค

inputs

  • fullpaths : ๋นŒ๋“œํ•  ๊ตฌํ˜„์ฒด์˜ ์ ˆ๋Œ€ ๊ฒฝ๋กœ ๋ชฉ๋ก์ž…๋‹ˆ๋‹ค
    ex) ["/abc/project1/maetdol", "/abc/project1/maetdol_react", "/abc/project2/maetdol"]

outputs

  • ์—†์Œ

get-build-target-fullpaths

๋ฐฐํฌํ•ด์•ผ ํ•˜๋Š” ๊ตฌํ˜„์ฒด๋“ค์˜ ์ ˆ๋Œ€๊ฒฝ๋กœ๋“ค์„ ๊ฐ€์ ธ์˜ต๋‹ˆ๋‹ค

inputs

  • workspace : ์ž‘์—…์„ ์ˆ˜ํ–‰ํ•  ๋ ˆํฌ์ง€ํ† ๋ฆฌ์˜ ๋ฃจํŠธ ์ ˆ๋Œ€๊ฒฝ๋กœ์ž…๋‹ˆ๋‹ค
    ex) ${{ github.workspace }}

outputs

  • projectPaths : ๋ฐฐํฌํ•ด์•ผํ•˜๋Š” ๊ตฌํ˜„์ฒด๋“ค์˜ ์ ˆ๋Œ€๊ฒฝ๋กœ ๋ชฉ๋ก์ž…๋‹ˆ๋‹ค
    ex) ["/abc/project1/maetdol", "/abc/project1/maetdol_react", "/abc/project2/maetdol"]

move-build-output-to-parent-directory

๋นŒ๋“œํ•œ ์ปจํ…์ธ ๋“ค์„ ๋ถ€๋ชจ ํด๋”๋กœ ์ด๋™ํ•ฉ๋‹ˆ๋‹ค
๋นŒ๋“œ ์˜ ๊ธฐ์ค€์€ build, .next, dist ํด๋”๋ฅผ ์˜๋ฏธํ•ฉ๋‹ˆ๋‹ค. ํ•„์š”์‹œ ์ถ”๊ฐ€ ๋ฐ”๋ž๋‹ˆ๋‹ค

inputs

  • fullpaths : ๋นŒ๋“œ ์ปจํ…์ธ ๋ฅผ ์˜ฎ๊ธธ ๊ตฌํ˜„์ฒด์˜ ์ ˆ๋Œ€๊ฒฝ๋กœ ๋ชฉ๋ก์ž…๋‹ˆ๋‹ค
    ex) ["/abc/project1/maetdol", "/abc/project1/maetdol_react", "/abc/project2/maetdol"]

outputs

  • ์—†์Œ

์‚ฌ์šฉํ•œ ๋„๊ตฌ๋“ค

์›นํŒฉ

์ž‘์„ฑํ•œ ์ฝ”๋“œ๋ฅผ ํ•˜๋‚˜์˜ ํŒŒ์ผ๋กœ ๋ฒˆ๋“ค๋งํ•˜๊ธฐ ์œ„ํ•ด ์‚ฌ์šฉํ•ฉ๋‹ˆ๋‹ค

๋ฐ”๋ฒจ

Jest ์—์„œ ESM ์„ ์‚ฌ์šฉํ•  ์ˆ˜ ์—†๊ธฐ ๋•Œ๋ฌธ์—, ํŠธ๋žœ์ŠคํŒŒ์ผ๋ง์ด ํ•„์š”ํ•ฉ๋‹ˆ๋‹ค
@babel/plugin-transform-modules-commonjs ํ”Œ๋Ÿฌ๊ทธ์ธ์„ ์ด์šฉํ•˜๊ธฐ ์œ„ํ•ด ๋ฐ”๋ฒจ์„ ์ถ”๊ฐ€ํ–ˆ์Šต๋‹ˆ๋‹ค
Jest ๊ฐ€ ์‹คํ–‰๋ ๋•Œ, babel.config.js ๊ฐ€ ์กด์žฌํ•œ๋‹ค๋ฉด ์ž๋™์œผ๋กœ transpiling ํ•ด์ค๋‹ˆ๋‹ค

About

Github actions for 'Awesome-Tomato' ๐Ÿ…

Resources

Stars

Watchers

Forks

Packages

No packages published