Skip to content

Commit 3d6a9d8

Browse files
fix actions
1 parent c51f7ad commit 3d6a9d8

File tree

2 files changed

+17
-9
lines changed

2 files changed

+17
-9
lines changed

.github/workflows/build.yml

Lines changed: 15 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ jobs:
2020
MYSQL_DATABASE: sampledb
2121
MYSQL_USER: sampleuser
2222
MYSQL_PASSWORD: samplepassword
23+
MYSQL_INITDB_SKIP_TZINFO: 1
2324

2425
steps:
2526
- name: Checkout repository
@@ -33,7 +34,11 @@ jobs:
3334

3435
- name: Wait for MySQL to be ready
3536
run: |
36-
until mysqladmin ping -h mysql -u sampleuser -p"samplepassword" --silent; do
37+
for i in {1..30}; do
38+
if mysqladmin ping -h mysql -P 3306 -u sampleuser -p"samplepassword" --silent; then
39+
echo "MySQL is ready!"
40+
break
41+
fi
3742
echo "Waiting for MySQL to be ready..."
3843
sleep 2
3944
done
@@ -44,9 +49,12 @@ jobs:
4449
- name: Run JaCoCo Test Report
4550
run: ./gradlew jacocoTestReport
4651

47-
- name: Upload JaCoCo Test Report
48-
uses: actions/upload-artifact@v3
49-
with:
50-
name: jacoco-report
51-
path: build/reports/jacoco/test/html
52-
52+
- name: Run Skeleton Batch
53+
run: ./gradlew skeletonBatch:bootRun
54+
55+
- name: Run dbAndCsvBatch (DB to CSV)
56+
run: ./gradlew dbAndCsvBatch:bootRun --args="--spring.profiles.active=local --spring.batch.job.name=DB_TO_CSV"
57+
58+
- name: Run dbAndCsvBatch (CSV to DB)
59+
run: ./gradlew dbAndCsvBatch:bootRun --args="--spring.profiles.active=local --spring.batch.job.name=CSV_TO_DB"
60+

.github/workflows/codecov.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,11 @@ jobs:
1414
- name: Checkout repository
1515
uses: actions/checkout@v3
1616

17-
- name: Set up JDK 17
17+
- name: Set up JDK 21
1818
uses: actions/setup-java@v3
1919
with:
2020
distribution: 'temurin'
21-
java-version: '17'
21+
java-version: '21'
2222

2323
- name: Build and generate coverage
2424
run: ./gradlew jacocoTestReport

0 commit comments

Comments
 (0)