Skip to content

fix: cd-develop.yml 수정 #28

fix: cd-develop.yml 수정

fix: cd-develop.yml 수정 #28

Workflow file for this run

name: Run Spring Boot Tests
on:
push:
branches:
- "fix/**"
pull_request:
branches:
- main
- develop
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Checkout code (코드 체크아웃)
uses: actions/checkout@v2
- name: Set up JDK 17 (JDK 17 설정)
uses: actions/setup-java@v2
with:
distribution: 'temurin'
java-version: '17'
- name: Create application.properties from git secret (application.properties 파일 생성)
run: |
mkdir -p default/src/main/resources
mkdir -p chat/src/main/resources
echo "$APPLICATION_DEFAULT" > default/src/main/resources/application.properties
echo "$APPLICATION_CHAT" > chat/src/main/resources/application.properties
env:
APPLICATION_DEFAULT: ${{ secrets.APPLICATION_DEFAULT }}
APPLICATION_CHAT: ${{ secrets.APPLICATION_CHAT }}
- name: Grant execute permission to Gradle (Gradle 실행 권한 부여)
run: |
chmod +x ./default/gradlew
chmod +x ./chat/gradlew
- name: Run tests - default server (디폴트 서버 테스트 실행)
run: |
cd default
./gradlew test
cd ..
- name: Run tests - chat server (채팅 서버 테스트 실행)
run: |
cd chat
./gradlew test