Skip to content

[Infra] dev 브랜치 main으로 병합 #293

[Infra] dev 브랜치 main으로 병합

[Infra] dev 브랜치 main으로 병합 #293

Workflow file for this run

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 :user:test -Dspring.profiles.active=dev && \
./gradlew --info :server:test -Dspring.profiles.active=dev && \
./gradlew --info test -x :user:test -x :server:test