티스토리 뷰

728x90

https://github.com/BreakOutEvent/breakout-backend/blob/1b93ce327db63d8fe74e6dbaf04fcc8a5f7f5823/.github/workflows/main.yml#L16

jobs:
  build_and_test:
    name: Build and test
    runs-on: ubuntu-latest
    permissions:
      security-events: write
    env:
      SPRING_PROFILES_ACTIVE: githubaction

https://pikanpie.wordpress.com/2016/07/26/gradle%EB%A1%9C-%ED%8A%B9%EC%A0%95-profile%EC%9D%B4-active%EB%90%98%EA%B2%8C-test-%EB%8F%8C%EB%A6%AC%EB%8A%94-%EB%B0%A9%EB%B2%95/

 

Gradle로 특정 Profile이 active되게 test 돌리는 방법

실제 운영을 하다보면 Profile이 local, development, production 처럼 환경에 따라 달리 설정하게 되는데, test를 돌릴 때 특정 profile의 정보를 읽어들어 build되게 하려면 아래 명령어로 하면 된다. > SPRING_PRO

pikanpie.wordpress.com

 

728x90
댓글