File tree Expand file tree Collapse file tree 1 file changed +9
-28
lines changed Expand file tree Collapse file tree 1 file changed +9
-28
lines changed Original file line number Diff line number Diff line change 1- name : Build and Test
2-
3- on :
4- push :
5- branches :
6- - main
7- pull_request :
8-
91jobs :
102 build :
113 runs-on : ubuntu-latest
@@ -20,37 +12,26 @@ jobs:
2012 MYSQL_DATABASE : sampledb
2113 MYSQL_USER : sampleuser
2214 MYSQL_PASSWORD : samplepassword
23- options : >-
24- --health-cmd="mysqladmin ping -h localhost --silent"
25- --health-interval=10s
26- --health-timeout=5s
27- --health-retries=5
2815
2916 steps :
3017 - name : Checkout repository
3118 uses : actions/checkout@v3
3219
20+ - name : Set up JDK 21
21+ uses : actions/setup-java@v3
22+ with :
23+ distribution : ' temurin'
24+ java-version : ' 21'
25+
3326 - name : Wait for MySQL to be ready
3427 run : |
35- until mysqladmin ping -h 127.0.0.1 --silent; do
28+ until mysqladmin ping -h localhost -u sampleuser -p"samplepassword" --silent; do
3629 echo "Waiting for MySQL to be ready..."
3730 sleep 2
3831 done
3932
40- - name : Set up JDK 17
41- uses : actions/setup-java@v3
42- with :
43- distribution : ' temurin'
44- java-version : ' 17'
45-
4633 - name : Build with Gradle
4734 run : ./gradlew build
4835
49- - name : Run skeletonBatch
50- run : ./gradlew skeletonBatch:bootRun
51-
52- - name : Run dbAndCsvBatch to Export Data to CSV
53- run : ./gradlew dbAndCsvBatch:bootRun --args="--spring.profiles.active=local --spring.batch.job.name=DB_TO_CSV"
54-
55- - name : Run dbAndCsvBatch to Import Data from CSV
56- run : ./gradlew dbAndCsvBatch:bootRun --args="--spring.profiles.active=local --spring.batch.job.name=CSV_TO_DB"
36+ - name : Run JaCoCo Test Report
37+ run : ./gradlew jacocoTestReport
You can’t perform that action at this time.
0 commit comments