File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -15,10 +15,14 @@ jobs:
1515 java-version : ' 17'
1616 distribution : ' adopt'
1717
18- - name : Compile Java code
19- run : javac -d out src/*.java test/*.java
18+ - name : Download JUnit Standalone JAR
19+ run : |
20+ mkdir lib
21+ wget -O lib/junit.jar https://repo1.maven.org/maven2/org/junit/platform/junit-platform-console-standalone/1.9.3/junit-platform-console-standalone-1.9.3.jar
22+
23+ - name : Compile Java code with JUnit
24+ run : javac -cp "lib/junit.jar" -d out src/*.java test/*.java
2025
2126 - name : Run tests
2227 run : |
23- wget https://repo1.maven.org/maven2/org/junit/platform/junit-platform-console-standalone/1.9.3/junit-platform-console-standalone-1.9.3.jar
24- java -jar junit-platform-console-standalone-1.9.3.jar --classpath out --scan-classpath
28+ java -jar lib/junit.jar --classpath out --scan-classpath
You can’t perform that action at this time.
0 commit comments