1
- name : Continous build - build and test on every push
1
+ name : Continous build on every push
2
2
3
3
on :
4
4
push :
7
7
- gh-pages
8
8
9
9
jobs :
10
- build :
11
- name : Build and test
12
- runs-on : ${{ matrix.os }}
10
+ build_linux :
11
+ name : Linux build and test
12
+ runs-on : ubuntu-latest
13
13
strategy :
14
14
matrix :
15
- os : [ubuntu-latest, windows-latest]
16
15
java-version : [8, 11]
17
16
18
17
steps :
@@ -26,39 +25,43 @@ jobs:
26
25
with :
27
26
java-version : ${{ matrix.java-version }}
28
27
28
+ - name : Setup Moxie
29
+ run : |
30
+ wget http://gitblit.github.io/moxie/maven/com/gitblit/moxie/moxie+ant/0.9.4/moxie+ant-0.9.4.tar.gz
31
+ tar -xzf moxie+ant-0.9.4.tar.gz
32
+ moxie-0.9.4/bin/moxie -version
33
+
29
34
- name : Report Java version
30
35
run : |
31
36
java -version
32
37
javac -version
33
38
34
- - name : Build with Ant
35
- run : ant test
39
+ - name : Build with Moxie
40
+ run : moxie-0.9.4/bin/moxie test
41
+
42
+
43
+ build_windows :
44
+ name : Windows build and test
45
+ runs-on : windows-latest
46
+ strategy :
47
+ matrix :
48
+ java-version : [8, 11]
36
49
37
- build_j7 :
38
- name : Build and test on Java 7
39
- runs-on : ubuntu-latest
40
-
41
50
steps :
42
51
- name : Checkout
43
52
uses : actions/checkout@v1
44
53
with :
45
54
submodules : true
46
55
47
- - name : Setup Java 7
56
+ - name : Setup Java ${{ matrix.java-version }}
48
57
uses : actions/setup-java@v1
49
58
with :
50
- java-version : 7
59
+ java-version : ${{ matrix.java-version }}
51
60
52
61
- name : Report Java version
53
62
run : |
54
63
java -version
55
64
javac -version
56
65
57
- - name : Setup Moxie
58
- run : |
59
- wget http://gitblit.github.io/moxie/maven/com/gitblit/moxie/moxie+ant/0.9.4/moxie+ant-0.9.4.tar.gz
60
- tar -xzf moxie+ant-0.9.4.tar.gz
61
- moxie-0.9.4/bin/moxie -version
62
-
63
- - name : Build with Moxie
64
- run : moxie-0.9.4/bin/moxie test
66
+ - name : Build with Ant
67
+ run : ant test
0 commit comments