Skip to content

SCRUM-126 이메일 알림 기능 #30

SCRUM-126 이메일 알림 기능

SCRUM-126 이메일 알림 기능 #30

Workflow file for this run

name: dev-ci
on:
pull_request:
branches:
- develop
workflow_call:
permissions:
contents: read
checks: write
pull-requests: write
jobs:
build-and-push:
runs-on: ubuntu-latest
timeout-minutes: 10
env:
TEST_REPORT: true
services:
mysql:
image: mysql:8.0
env:
MYSQL_ROOT_PASSWORD: ""
MYSQL_ALLOW_EMPTY_PASSWORD: "yes"
MYSQL_DATABASE: wellmeet_noti_test
ports:
- 3306:3306
options: >-
--health-cmd="mysqladmin ping"
--health-interval=10s
--health-timeout=5s
--health-retries=3
zookeeper:
image: confluentinc/cp-zookeeper:7.0.1
env:
ZOOKEEPER_CLIENT_PORT: 2181
ZOOKEEPER_TICK_TIME: 2000
ports:
- 2181:2181
options: >-
--health-cmd="curl -f http://localhost:8080/commands/stat || exit 1"
--health-interval=10s
--health-timeout=10s
--health-retries=5
kafka:
image: confluentinc/cp-kafka:7.0.1
env:
KAFKA_BROKER_ID: 1
KAFKA_ZOOKEEPER_CONNECT: zookeeper:2181
KAFKA_LISTENER_SECURITY_PROTOCOL_MAP: PLAINTEXT:PLAINTEXT
KAFKA_ADVERTISED_LISTENERS: PLAINTEXT://localhost:9092
KAFKA_OFFSETS_TOPIC_REPLICATION_FACTOR: 1
KAFKA_TRANSACTION_STATE_LOG_MIN_ISR: 1
KAFKA_TRANSACTION_STATE_LOG_REPLICATION_FACTOR: 1
KAFKA_AUTO_CREATE_TOPICS_ENABLE: true
ports:
- 9092:9092
options: >-
--health-cmd="timeout 10s bash -c 'until printf \"\" 2>>/dev/null >>/dev/tcp/localhost/9092; do sleep 1; done'"
--health-interval=10s
--health-timeout=10s
--health-retries=10
steps:
- uses: actions/checkout@v4
- name: Setting local-secret.yml
run: |
echo "${{ secrets.LOCAL_SECRET_YML }}" > ./src/main/resources/local-secret.yml
- name: Set up JDK 21
uses: actions/setup-java@v4
with:
java-version: '21'
distribution: 'temurin'
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v4
- name: Grant Permission
run: chmod +x ./gradlew
- name: Build With Gradle
run: ./gradlew clean build -x test
- name: Run Tests With Gradle
run: ./gradlew test