[Chat] 채팅방에서 유저를 내보낼 때 내보내지는 유저의 WebSocket Subscription 해제 #284
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 :user:test -Dspring.profiles.active=dev && \ | |
./gradlew --info :server:test -Dspring.profiles.active=dev && \ | |
./gradlew --info test -x :user:test -x :server:test |