File tree Expand file tree Collapse file tree 2 files changed +32
-7
lines changed Expand file tree Collapse file tree 2 files changed +32
-7
lines changed Original file line number Diff line number Diff line change 5
5
pull_request :
6
6
7
7
jobs :
8
- test :
8
+ test-linux :
9
9
runs-on : ubuntu-latest
10
-
11
10
steps :
12
11
- uses : actions/checkout@v2
13
12
- name : Set up JDK 1.8
@@ -16,17 +15,42 @@ jobs:
16
15
java-version : 1.8
17
16
- name : Build with Ant
18
17
working-directory : ./build
19
- run : |
20
- ant clean build
18
+ run : ant clean build
21
19
- name : Install X virtual framebuffer
22
20
run : sudo apt-get install -y xvfb
23
21
- name : Run tests
24
- working-directory : ./app
22
+ working-directory : ./build
25
23
run : xvfb-run --auto-servernum --server-args "-screen 0 1024x768x24" ant test -Drunning-from-github-action=1
26
24
- name : Publish results
27
- uses : actions/upload-artifact@v1
25
+ uses : actions/upload-artifact@v2
28
26
with :
29
- name : html-results
27
+ name : html-results-linux
30
28
path : app/test-bin/results/html/
31
29
- name : Cleanup xvfb
32
30
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/
Original file line number Diff line number Diff line change 123
123
<fail message =" Need single-test-class if single-test-methods is set" if =" single-test-methods" unless =" single-test-class" />
124
124
125
125
<junit printsummary =" yes" dir =" ${ work.dir } " fork =" true" showoutput =" no" failureproperty =" test.failed" >
126
+ <jvmarg value =" -Dlog4j.dir=." />
126
127
<jvmarg value =" -Djava.library.path=${ java.additional.library.path } " />
127
128
<jvmarg value =" -DWORK_DIR=." />
128
129
<jvmarg value =" -ea" />
You can’t perform that action at this time.
0 commit comments