File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 77 branches : [ "main" ]
88
99jobs :
10- test :
10+ build :
1111 runs-on : ubuntu-latest
12+
1213 services :
1314 mysql :
1415 image : mysql:8.0
@@ -18,15 +19,21 @@ jobs:
1819 ports :
1920 - 3306:3306
2021 options : --health-cmd="mysqladmin ping" --health-interval=10s --health-timeout=5s --health-retries=3
22+
2123 steps :
22- - uses : actions/checkout@v4
23- - name : Set up JDK
24- uses : actions/setup-java@v4
24+ - uses : actions/checkout@v4
25+
26+ - name : Set up JDK 21
27+ uses : actions/setup-java@v4
28+ with :
29+ java-version : ' 21'
30+ distribution : ' temurin'
31+ cache : ' maven'
32+
33+ - name : Run Tests
34+ run : mvn test
35+ env :
36+ SPRING_DATASOURCE_URL : jdbc:mysql://localhost:3306/testdb
37+ SPRING_DATASOURCE_USERNAME : root
38+ SPRING_DATASOURCE_PASSWORD : password
2539
26- - name : Run Tests
27- run : mvn test
28- env :
29- # Override properties to point to the service container
30- SPRING_DATASOURCE_URL : jdbc:mysql://localhost:3306/testdb
31- SPRING_DATASOURCE_USERNAME : root
32- SPRING_DATASOURCE_PASSWORD : password
You can’t perform that action at this time.
0 commit comments