Skip to content

Commit 8306958

Browse files
fix actions
1 parent 59ca5b9 commit 8306958

File tree

3 files changed

+33
-14
lines changed

3 files changed

+33
-14
lines changed

.github/workflows/build.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: Build and Test Skeleton Batch
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
workflow_dispatch:
8+
9+
jobs:
10+
build:
11+
runs-on: ubuntu-latest
12+
13+
steps:
14+
- name: Checkout repository
15+
uses: actions/checkout@v3
16+
17+
- name: Set up JDK 21
18+
uses: actions/setup-java@v3
19+
with:
20+
distribution: 'temurin'
21+
java-version: '21'
22+
23+
- name: Build Skeleton Batch with Gradle
24+
run: ./gradlew :skeletonBatch:build
25+
26+
- name: Run Skeleton Batch
27+
run: ./gradlew :skeletonBatch:bootRun

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
Spring Batch3 Starter - Accelerate Your Spring Boot 3 Batch Development🚀
22
=============================
3+
# SpringBoot3BatchStarter
4+
[![Build Status](https://github.com/KTC-YoheiMiyashita/SpringBoot3BatchStarter/actions/workflows/build.yml/badge.svg)](https://github.com/KTC-YoheiMiyashita/SpringBoot3BatchStarter/actions/workflows/build.yml)
5+
36
[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
47

58

compose.yaml

Lines changed: 3 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,12 @@
1+
version: '3'
12
services:
23
mysql:
34
image: mysql:latest
4-
container_name: mysql-container-dev
55
ports:
6-
- "3306:3306"
6+
- 3306:3306
77
environment:
88
MYSQL_ROOT_PASSWORD: rootpassword
99
MYSQL_DATABASE: sampledb
1010
MYSQL_USER: sampleuser
1111
MYSQL_PASSWORD: samplepassword
12-
volumes:
13-
- ./init-scripts:/docker-entrypoint-initdb.d
14-
healthcheck:
15-
test: ["CMD", "mysqladmin", "ping", "-h", "localhost", "--silent"]
16-
interval: 20s # 健康チェック間隔を20秒に延長
17-
timeout: 10s # タイムアウトを10秒に設定
18-
retries: 10 # リトライ回数を10回に設定
19-
start_period: 60s # コンテナ起動からの待機時間を追加
20-
restart: always
21-
networks:
22-
default:
23-
name: springboot3batchstarter_default
12+
MYSQL_INITDB_SKIP_TZINFO: 1

0 commit comments

Comments
 (0)