]> source.dussan.org Git - gitblit.git/commitdiff
Build with matrix of Java 7, 8 and 11.
authorFlorian Zschocke <florian.zschocke@devolo.de>
Sun, 5 Jan 2020 20:21:48 +0000 (21:21 +0100)
committerFlorian Zschocke <florian.zschocke@devolo.de>
Sun, 5 Jan 2020 20:48:14 +0000 (21:48 +0100)
.github/workflows/ci-build.yml

index 9ee2601d29b490be5dac3167ef248249b5449a12..354d2d52c8710416cbd6443e0370b7f81e146daa 100644 (file)
@@ -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