Skip to content

Commit

Permalink
First try with Java.
Browse files Browse the repository at this point in the history
Co-authored-by: Sven Köhler <sven.koehler@gmail.com>
  • Loading branch information
Paebbels and skoehler committed May 12, 2024
1 parent 32eca05 commit 807bf6f
Show file tree
Hide file tree
Showing 8 changed files with 14 additions and 9 deletions.
15 changes: 10 additions & 5 deletions .github/workflows/Java.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ on:
push:

jobs:
Ant:
Java-Ant-JUnit4:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
Expand All @@ -15,9 +15,14 @@ jobs:
java-version: '11'
distribution: 'temurin'
architecture: x64
- name: Prepare
run: find -L / -name "*.jar" 2>/dev/null | grep -P '(junit|hamcrest)'
- name: Run the Ant 'junit' target
run: ant -noinput -buildfile build.xml junit
run: |
cd examples/Java/JUnit
ant -noinput -buildfile build-github.xml junit
- name: Debug
run: ls -lAh build
run: ls -lAh examples/Java/JUnit/build
- name: Upload JUnit XML files as artifact
uses: actions/upload-artifact@v4
with:
name: Java-Ant-JUnit4
path: examples/Java/JUnit/build/*.xml
Original file line number Diff line number Diff line change
Expand Up @@ -17,16 +17,16 @@
<src path="${src}" />
<src path="${test}" />
<classpath>
<pathelement location="/usr/share/java/junit.jar"/>
<pathelement location="/usr/share/gradle-8.7/lib/junit-4.13.2.jar"/>
</classpath>
</javac>
</target>

<target name="junit" depends="compile">
<junit haltonerror="true" printsummary="true">
<classpath>
<pathelement location="/usr/share/java/junit.jar"/>
<pathelement location="/usr/share/java/hamcrest-core.jar"/>
<pathelement location="/usr/share/gradle-8.7/lib/junit-4.13.2.jar"/>
<pathelement location="/usr/share/gradle-8.7/lib/hamcrest-core-1.3.jar"/>
<pathelement location="${build}"/>
</classpath>
<formatter type="xml"/>
Expand All @@ -43,4 +43,4 @@
<delete dir="${build}" />
<delete dir="${dist}" />
</target>
</project>
</project>
File renamed without changes.

0 comments on commit 807bf6f

Please sign in to comment.