summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFlorian Zschocke <florian.zschocke@devolo.de>2020-01-05 21:21:48 +0100
committerFlorian Zschocke <florian.zschocke@devolo.de>2020-01-05 21:48:14 +0100
commit9cb37eba8e8ee506bf4df9401cf86af766944c71 (patch)
tree04ae628ddb060cf264521856f34fe918e50acc7c
parent5bfcb4a25c2c81398f5c9e56632334d4f5fe2f40 (diff)
downloadgitblit-9cb37eba8e8ee506bf4df9401cf86af766944c71.tar.gz
gitblit-9cb37eba8e8ee506bf4df9401cf86af766944c71.zip
Build with matrix of Java 7, 8 and 11.
-rw-r--r--.github/workflows/ci-build.yml15
1 files changed, 10 insertions, 5 deletions
diff --git a/.github/workflows/ci-build.yml b/.github/workflows/ci-build.yml
index 9ee2601d..354d2d52 100644
--- a/.github/workflows/ci-build.yml
+++ b/.github/workflows/ci-build.yml
@@ -6,6 +6,9 @@ jobs:
build:
name: Build and test
runs-on: ubuntu-latest
+ strategy:
+ matrix:
+ java-version: [7, 8, 11]
steps:
- name: Checkout
@@ -13,13 +16,15 @@ jobs:
with:
submodules: true
- - name: Setup Java
+ - name: Setup Java ${{ matrix.java-version }}
uses: actions/setup-java@v1
with:
- java-version: 1.8
+ java-version: ${{ matrix.java-version }}
- - name: Build with Ant
- run: ant compile
+ - name: Report Java version
+ run: |
+ java -version
+ javac -version
- - name: Test with Ant
+ - name: Build with Ant
run: ant test