[User] 회원탈퇴 API 구현 #249
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: PR Test | |
on: | |
pull_request: | |
branches: [ main, dev ] # branch에 PR을 보낼 때 실행 | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: set up jdk 21 | |
uses: actions/setup-java@v4 | |
with: | |
distribution: 'zulu' | |
java-version: '21' | |
# Cache Gradle dependencies | |
- name: Cache Gradle dependencies | |
uses: actions/cache@v4 | |
with: | |
path: | | |
~/.gradle/caches | |
~/.gradle/wrapper | |
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }} | |
restore-keys: ${{ runner.os }}-gradle | |
# Gradle wrapper 파일 실행 권한주기 | |
- name: Grant execute permission for gradlew | |
run: chmod +x gradlew | |
# Enable Gradle build cache | |
- name: Enable Gradle build cache | |
run: echo "org.gradle.caching=true" >> gradle.properties | |
# Gradle test를 실행한다 | |
- name: Test with Gradle | |
run: ./gradlew --info test | |
if: github.ref != 'refs/heads/dev' | |
- name: Test User module with dev profile | |
run: ./gradlew --info test -Dspring.profiles.active=dev --project-dir=user | |
if: github.ref == 'refs/heads/dev' | |
- name: Test Server module with dev profile | |
run: ./gradlew --info test -Dspring.profiles.active=dev --project-dir=server | |
if: github.ref == 'refs/heads/dev' | |
- name: Test other modules with default profile | |
run: ./gradlew --info test -x :user:test -x :server:test | |
if: github.ref == 'refs/heads/dev' |