Skip to content

Commit 6cb1625

Browse files
committed
Added windows testing
1 parent 4a5e304 commit 6cb1625

File tree

2 files changed

+32
-7
lines changed

2 files changed

+32
-7
lines changed

.github/workflows/unit-test.yml

Lines changed: 31 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,8 @@ on:
55
pull_request:
66

77
jobs:
8-
test:
8+
test-linux:
99
runs-on: ubuntu-latest
10-
1110
steps:
1211
- uses: actions/checkout@v2
1312
- name: Set up JDK 1.8
@@ -16,17 +15,42 @@ jobs:
1615
java-version: 1.8
1716
- name: Build with Ant
1817
working-directory: ./build
19-
run: |
20-
ant clean build
18+
run: ant clean build
2119
- name: Install X virtual framebuffer
2220
run: sudo apt-get install -y xvfb
2321
- name: Run tests
24-
working-directory: ./app
22+
working-directory: ./build
2523
run: xvfb-run --auto-servernum --server-args "-screen 0 1024x768x24" ant test -Drunning-from-github-action=1
2624
- name: Publish results
27-
uses: actions/upload-artifact@v1
25+
uses: actions/upload-artifact@v2
2826
with:
29-
name: html-results
27+
name: html-results-linux
3028
path: app/test-bin/results/html/
3129
- name: Cleanup xvfb
3230
uses: bcomnes/cleanup-xvfb@v1
31+
32+
test-windows:
33+
runs-on: windows-latest
34+
steps:
35+
- uses: actions/checkout@v2
36+
- name: Download JDK 1.8 for Windows/x86
37+
run: curl -O "https://cdn.azul.com/zulu/bin/zulu8.46.0.19-ca-jdk8.0.252-win_i686.zip"
38+
- name: Set up JDK 1.8
39+
uses: actions/setup-java@master
40+
with:
41+
version: 1.8
42+
architecture: x86
43+
jdkFile: ./zulu8.46.0.19-ca-jdk8.0.252-win_i686.zip
44+
- name: Build with Ant
45+
working-directory: ./build
46+
run: |
47+
java -version
48+
ant clean build
49+
- name: Run tests
50+
working-directory: ./build
51+
run: ant test -Drunning-from-github-action=1
52+
- name: Publish results
53+
uses: actions/upload-artifact@v2
54+
with:
55+
name: html-results-win
56+
path: app/test-bin/results/html/

app/build.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,7 @@
123123
<fail message="Need single-test-class if single-test-methods is set" if="single-test-methods" unless="single-test-class"/>
124124

125125
<junit printsummary="yes" dir="${work.dir}" fork="true" showoutput="no" failureproperty="test.failed">
126+
<jvmarg value="-Dlog4j.dir=."/>
126127
<jvmarg value="-Djava.library.path=${java.additional.library.path}"/>
127128
<jvmarg value="-DWORK_DIR=."/>
128129
<jvmarg value="-ea"/>

0 commit comments

Comments
 (0)