๐Ÿ“Œ Workflow ์„ ํƒ

๊นƒํ—™์—์„œ Actions > gradle ๊ฒ€์ƒ‰ > java with Gradle ์˜ Cofigure ํด๋ฆญ

 

๐Ÿ“Œ Workflow ์„ ํƒ

๐Ÿ“ yml์ด ๋ญ” ํŒŒ์ผ์ด์ง€?

Yet another Markup Language์˜ ์•ฝ์ž๋กœ yml ๋˜๋Š” yaml ํ™•์žฅ์ž๋กœ ์‚ฌ์šฉ๋œ๋‹ค. ์—ฌ๋Ÿฌ configuration์„ ํ•œ ํŒŒ์ผ์—์„œ ๊ด€๋ฆฌํ•˜๊ธฐ ์œ„ํ•œ ํŒŒ์ผ๋กœ yaml๋ฌธ๋ฒ•์„ ์‚ฌ์šฉํ•˜์—ฌ ๊ตฌ์„ฑํ•œ๋‹ค. ๊ธฐ๋ณธ์ ์œผ๋กœ key-value๋กœ ๊ตฌ์„ฑ๋˜์–ด ์žˆ๊ณ  json๊ณผ ์ƒ์œ„ ํ˜ธํ™˜๋˜์–ด ์‹œํ€€์Šค(๋ฐฐ์—ด,๋ฆฌ์ŠคํŠธ), ๋งคํ•‘์ด ๊ฐ€๋Šฅํ•˜๋‹ค.

 

์•„๋ž˜ gradle.yml ๊ตฌ์„ฑ์„ ๋ณด๋ฉด

  • on : ์ด ์›Œํฌํ”Œ๋กœ์šฐ๊ฐ€ ์ˆ˜ํ–‰๋  ๊นƒํ—™ ์ด๋ฒคํŠธ๋ฅผ ๊ฒฐ์ • 
  • permissions : ๊ถŒํ•œ ์„ค์ •
  • jobs : ์ˆ˜ํ–‰ํ•  ์›Œํฌํ”Œ๋กœ์šฐ๋“ค์„ ์ฐจ๋ก€๋Œ€๋กœ ์ž…๋ ฅ

 

๐Ÿ“Œ PR test

๋ธŒ๋žœ์น˜๋ฅผ ํ•˜๋‚˜ ์ƒˆ๋กœ ๋งŒ๋“ค์–ด ์›Œํฌํ”Œ๋กœ์šฐ ์ด๋ฒคํŠธ์— ๋ฐ˜์‘ํ•˜๊ฒŒ main์— PR์„ ํ•ด๋ดค๋‹ค ๊ทธ๋Ÿฐ๋ฐ ์•—, ํŠธ๋Ÿฌ๋ธ” ๋ฐœ์ƒ!

 

Detail๋ฅผ ๋ณด๋‹ˆ gradle์—์„œ ์˜ˆ์™ธ๋ฐœ์ƒ. ๋นŒ๋“œ์‹œ ๊ถŒํ•œ์ด ์—†์–ด์„œ ๋ฐœ์ƒํ•˜๋Š” ๋ฌธ์ œ๋ผ๊ณ ..

 

gradle.yml ํŒŒ์ผ์— Build with Gradle ์ด์ „์—  gradlew ๊ถŒํ•œ์„ ๋ถ€์—ฌํ•˜๋Š” ์›Œํฌํ”Œ๋กœ์šฐ๋ฅผ ์ถ”๊ฐ€ํ•œ๋‹ค.

    - name: Grant execute permission for gradlew
      run: chmod +x ./gradlew

 

๊ทธ๋Ÿผ ์Šค๋ฌด์Šคํ•˜๊ฒŒ ์„ฑ๊ณต~ 

+ Recent posts