From 13b726d5f2eb072b7eab40233b9dc3f55849e0ac Mon Sep 17 00:00:00 2001 From: catbref Date: Tue, 24 Nov 2020 10:17:44 +0000 Subject: [PATCH 1/7] Create maven.yml --- .github/workflows/maven.yml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 .github/workflows/maven.yml diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml new file mode 100644 index 0000000..c8aeb3a --- /dev/null +++ b/.github/workflows/maven.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 package --file pom.xml From e110f9ab226c3c1154ac1f68c1f273b58f99e802 Mon Sep 17 00:00:00 2001 From: catbref Date: Tue, 24 Nov 2020 10:21:45 +0000 Subject: [PATCH 2/7] Update maven.yml --- .github/workflows/maven.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml index c8aeb3a..a9cf052 100644 --- a/.github/workflows/maven.yml +++ b/.github/workflows/maven.yml @@ -16,9 +16,9 @@ jobs: steps: - uses: actions/checkout@v2 - - name: Set up JDK 1.8 + - name: Set up JDK 11 uses: actions/setup-java@v1 with: - java-version: 1.8 + java-version: 11 - name: Build with Maven - run: mvn -B package --file pom.xml + run: cd Java && mvn -B package --file pom.xml From a5e22b71242f5a3bfa1953cdbde10b6b773e0119 Mon Sep 17 00:00:00 2001 From: catbref Date: Tue, 24 Nov 2020 10:37:52 +0000 Subject: [PATCH 3/7] Update maven.yml --- .github/workflows/maven.yml | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml index a9cf052..aaa79c1 100644 --- a/.github/workflows/maven.yml +++ b/.github/workflows/maven.yml @@ -10,15 +10,25 @@ on: branches: [ master ] jobs: - build: - + setup: runs-on: ubuntu-latest - steps: - uses: actions/checkout@v2 - name: Set up JDK 11 uses: actions/setup-java@v1 with: java-version: 11 + + build: + needs: setup + runs-on: ubuntu-latest + steps: - name: Build with Maven run: cd Java && mvn -B package --file pom.xml + + test: + needs: build + runs-on: ubuntu-latest + steps: + - name: Test with Maven + uses: cd Java && mvn test From bead83cbbd8d5d452d2c37fbfa5b153441f6d1f6 Mon Sep 17 00:00:00 2001 From: catbref Date: Tue, 24 Nov 2020 10:39:50 +0000 Subject: [PATCH 4/7] Update maven.yml --- .github/workflows/maven.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml index aaa79c1..1a85761 100644 --- a/.github/workflows/maven.yml +++ b/.github/workflows/maven.yml @@ -30,5 +30,5 @@ jobs: needs: build runs-on: ubuntu-latest steps: - - name: Test with Maven - uses: cd Java && mvn test + - name: Test with Maven + run: cd Java && mvn test From a24ed71f034a167d9e74fce31a715fd79504dc33 Mon Sep 17 00:00:00 2001 From: catbref Date: Tue, 24 Nov 2020 10:42:01 +0000 Subject: [PATCH 5/7] Update maven.yml --- .github/workflows/maven.yml | 15 +++------------ 1 file changed, 3 insertions(+), 12 deletions(-) diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml index 1a85761..c0184d8 100644 --- a/.github/workflows/maven.yml +++ b/.github/workflows/maven.yml @@ -10,25 +10,16 @@ on: branches: [ master ] jobs: - setup: + test: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 - name: Set up JDK 11 uses: actions/setup-java@v1 with: java-version: 11 - - build: - needs: setup - runs-on: ubuntu-latest - steps: + - name: Checkout repo + - uses: actions/checkout@v2 - name: Build with Maven run: cd Java && mvn -B package --file pom.xml - - test: - needs: build - runs-on: ubuntu-latest - steps: - name: Test with Maven run: cd Java && mvn test From a5ac07a788d00d59ef9aee4e84c343f181c0f32e Mon Sep 17 00:00:00 2001 From: catbref Date: Tue, 24 Nov 2020 10:43:24 +0000 Subject: [PATCH 6/7] Update maven.yml --- .github/workflows/maven.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml index c0184d8..d5fa02c 100644 --- a/.github/workflows/maven.yml +++ b/.github/workflows/maven.yml @@ -18,7 +18,7 @@ jobs: with: java-version: 11 - name: Checkout repo - - uses: actions/checkout@v2 + uses: actions/checkout@v2 - name: Build with Maven run: cd Java && mvn -B package --file pom.xml - name: Test with Maven From 1bb0be5dbf6807d604d4b02376c9bb48bcf38b37 Mon Sep 17 00:00:00 2001 From: catbref Date: Tue, 24 Nov 2020 11:42:55 +0000 Subject: [PATCH 7/7] Update maven.yml --- .github/workflows/maven.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml index d5fa02c..a14fd98 100644 --- a/.github/workflows/maven.yml +++ b/.github/workflows/maven.yml @@ -22,4 +22,4 @@ jobs: - name: Build with Maven run: cd Java && mvn -B package --file pom.xml - name: Test with Maven - run: cd Java && mvn test + run: cd Java && mvn -DskipTests=false test