File tree Expand file tree Collapse file tree 2 files changed +17
-9
lines changed Expand file tree Collapse file tree 2 files changed +17
-9
lines changed Original file line number Diff line number Diff line change 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
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
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+
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments