Skip to content

Commit ab0129d

Browse files
add Batch
1 parent 2d7d521 commit ab0129d

File tree

3 files changed

+62
-1
lines changed

3 files changed

+62
-1
lines changed

.github/workflows/build.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: Build and Test
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
pull_request:
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 17
18+
uses: actions/setup-java@v3
19+
with:
20+
distribution: 'temurin'
21+
java-version: '17'
22+
23+
- name: Build with Gradle
24+
run: ./gradlew build

.github/workflows/codecov.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: Upload coverage to Codecov
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
pull_request:
8+
9+
jobs:
10+
test-and-report:
11+
runs-on: ubuntu-latest
12+
13+
steps:
14+
- name: Checkout repository
15+
uses: actions/checkout@v3
16+
17+
- name: Set up JDK 17
18+
uses: actions/setup-java@v3
19+
with:
20+
distribution: 'temurin'
21+
java-version: '17'
22+
23+
- name: Build and generate coverage
24+
run: ./gradlew jacocoTestReport
25+
26+
- name: Upload coverage to Codecov
27+
uses: codecov/codecov-action@v3
28+
with:
29+
token: ${{ secrets.CODECOV_TOKEN }}
30+
files: ./build/reports/jacoco/test/jacocoTestReport.xml

README.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,11 @@
1-
# Spring Batch3 Starter - Accelerate Your Spring Boot 3 Batch Development🚀
1+
Spring Batch3 Starter - Accelerate Your Spring Boot 3 Batch Development🚀
2+
=============================
3+
[![Build Status](https://github.com/KTC-YoheiMiyashita/SpringBoot3BatchStarter/actions/workflows/build.yml/badge.svg)](https://github.com/<your-username>/<your-repo-name>/actions/workflows/build.yml)
4+
5+
[![Coverage Status](https://codecov.io/gh/KTC-YoheiMiyashita/SpringBoot3BatchStarter/branch/main/graph/badge.svg)](https://codecov.io/gh/KTC-YoheiMiyashita/SpringBoot3BatchStarter)
6+
7+
[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
8+
29

310
## Overview / 概要
411

0 commit comments

Comments
 (0)