Skip to content

Commit 6112ed0

Browse files
committed
update
1 parent 3517f74 commit 6112ed0

1 file changed

Lines changed: 8 additions & 4 deletions

File tree

.github/workflows/test.yml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)