Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

✅ CI 적용하기 #12

Closed
3 tasks done
Sehee-Lee-01 opened this issue Dec 20, 2023 · 1 comment · Fixed by #23 or #25
Closed
3 tasks done

✅ CI 적용하기 #12

Sehee-Lee-01 opened this issue Dec 20, 2023 · 1 comment · Fixed by #23 or #25
Assignees
Labels
enhancement New feature or request

Comments

@Sehee-Lee-01
Copy link
Member

Sehee-Lee-01 commented Dec 20, 2023

Issue: ✅ CI 적용하기 #12

Description

  • pull request 적용 시 자동으로 테스트와 lint 적용등이 가능하게 CI pipeline을 구축 필요

Todo

  • CI 툴 선택(github action vs jenkins)
  • 선택에 따라 CI 설정
  • 설정 후 정상 작동하는지 확인 필요

ETC

  • 추후 해야할 일(참고)

CI 설정 이후 pull reque 시 정상적으로 작동하는지 테스트 필요

@ASak1104 ASak1104 added the enhancement New feature or request label Dec 20, 2023
@ASak1104 ASak1104 moved this to In Progress in outfit-of-the-weather Dec 20, 2023
@Sehee-Lee-01 Sehee-Lee-01 changed the title CI 적용하기 ✅ CI 적용하기 Dec 20, 2023
@shoeone96
Copy link
Collaborator

shoeone96 commented Dec 20, 2023

github action 도입 시 초안 작성

name: Spring Boot Gradle Test Workflow

on: [pull_request]

jobs:
  build:
    runs-on: ubuntu-latest

    steps:
    - uses: actions/checkout@v2
   # java 설치
    - name: Set up JDK 17
      uses: actions/setup-java@v2
      with:
        java-version: '17'
        distribution: 'adopt'
    - name: Grant execute permission for gradlew
      run: chmod +x gradlew
      # 프로젝트 빌드
    - name: Build with Gradle
      run: ./gradlew clean build
    # 테스트 실행
    - name: Run Tests
      run: ./gradlew test

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment