[TEST] user api 문서화 #4
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build and Merge PR | |
on: | |
pull_request: | |
types: [opened, synchronize] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
- name: Set up JDK 17 | |
uses: actions/setup-java@v3 | |
with: | |
java-version: '17' # 사용할 JDK 버전 | |
distribution: 'adopt' | |
- name: Build with Gradle | |
run: ./gradlew build # Gradle 빌드 실행 | |
- name: Run tests | |
run: ./gradlew test # 테스트 실행 | |
merge: | |
runs-on: ubuntu-latest | |
needs: build | |
if: success() # 빌드가 성공했을 때만 실행 | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
- name: Merge PR | |
run: | | |
git checkout main | |
git merge dev --no-ff --no-edit | |
git push origin main |