From 8fd339f042badb3387863b0fc3e058c369294575 Mon Sep 17 00:00:00 2001 From: Carl Dea Date: Mon, 4 Jan 2021 23:34:43 -0500 Subject: [PATCH 1/3] Using GitHub CI to test project. --- .github/workflows/ci-test.yml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 .github/workflows/ci-test.yml diff --git a/.github/workflows/ci-test.yml b/.github/workflows/ci-test.yml new file mode 100644 index 00000000..0afbda35 --- /dev/null +++ b/.github/workflows/ci-test.yml @@ -0,0 +1,24 @@ +# This workflow will build a Java project with Maven +# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-maven + +name: Java CI with Maven + +on: + push: + branches: [ master ] + pull_request: + branches: [ master ] + +jobs: + build: + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v2 + - name: Set up JDK 1.8 + uses: actions/setup-java@v1 + with: + java-version: 1.8 + - name: Build with Maven + run: mvn -B test verify --file pom.xml From d2803b0b3abdb1053f0aa95b44c2d97cf2e98fcb Mon Sep 17 00:00:00 2001 From: Carl Dea Date: Mon, 4 Jan 2021 23:40:23 -0500 Subject: [PATCH 2/3] Use GitHub CI to test project --- .github/workflows/ci-test.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/ci-test.yml b/.github/workflows/ci-test.yml index 0afbda35..943395c7 100644 --- a/.github/workflows/ci-test.yml +++ b/.github/workflows/ci-test.yml @@ -21,4 +21,5 @@ jobs: with: java-version: 1.8 - name: Build with Maven + working-directory: code run: mvn -B test verify --file pom.xml From 36a4d6f42d045f4163b3ed8ee5fe8cd91a587a96 Mon Sep 17 00:00:00 2001 From: Carl Dea Date: Tue, 5 Jan 2021 00:06:55 -0500 Subject: [PATCH 3/3] Added testing for JDK 11 --- .github/workflows/ci-test.yml | 31 ++++++++++++++++++------------- 1 file changed, 18 insertions(+), 13 deletions(-) diff --git a/.github/workflows/ci-test.yml b/.github/workflows/ci-test.yml index 943395c7..62bdc7b9 100644 --- a/.github/workflows/ci-test.yml +++ b/.github/workflows/ci-test.yml @@ -1,7 +1,7 @@ # This workflow will build a Java project with Maven # For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-maven -name: Java CI with Maven +name: Java CI testing with Maven on: push: @@ -10,16 +10,21 @@ on: branches: [ master ] jobs: - build: - - runs-on: ubuntu-latest - + test: + runs-on: ${{ matrix.os }} + strategy: + matrix: + os: [ubuntu-latest] + java: [1.8, 11] + fail-fast: false + max-parallel: 2 + name: Test JDK ${{ matrix.java }}, ${{ matrix.os }} steps: - - uses: actions/checkout@v2 - - name: Set up JDK 1.8 - uses: actions/setup-java@v1 - with: - java-version: 1.8 - - name: Build with Maven - working-directory: code - run: mvn -B test verify --file pom.xml + - uses: actions/checkout@v2 + - name: Set up JDK ${{ matrix.java }} + uses: actions/setup-java@v1 + with: + java-version: ${{ matrix.java }} + - name: Build with Maven + working-directory: code + run: mvn -B test verify --file pom.xml