From baa5068ac62e4ce73e20a722a150f750f93b007a Mon Sep 17 00:00:00 2001 From: Breno A Date: Thu, 11 Jan 2024 12:51:32 -0300 Subject: [PATCH 01/10] Feature: Build and Test Workflow --- .github/workflows/maven.yml | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 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..3a039a6 --- /dev/null +++ b/.github/workflows/maven.yml @@ -0,0 +1,35 @@ +# This workflow will build a Java project with Maven, and cache/restore any dependencies to improve the workflow execution time +# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-java-with-maven + +# This workflow uses actions that are not certified by GitHub. +# They are provided by a third-party and are governed by +# separate terms of service, privacy policy, and support +# documentation. + +name: Java CI with Maven + +on: + push: + branches: [ "main", "dev" ] + pull_request: + branches: [ "main", "dev" ] + +jobs: + build: + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v3 + - name: Set up JDK 17 + uses: actions/setup-java@v3 + with: + java-version: '17' + distribution: 'temurin' + cache: maven + - name: Build with Maven + run: mvn -B package --file pom.xml + + # Optional: Uploads the full dependency graph to GitHub to improve the quality of Dependabot alerts this repository can receive + - name: Update dependency graph + uses: advanced-security/maven-dependency-submission-action@571e99aab1055c2e71a1e2309b9691de18d6b7d6 From 314b4d10deb66953bae865b962199e9153b2bb6e Mon Sep 17 00:00:00 2001 From: Breno A Date: Thu, 11 Jan 2024 12:55:35 -0300 Subject: [PATCH 02/10] Feature: Add Greetings Workflow --- .github/workflows/greetings.yml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 .github/workflows/greetings.yml diff --git a/.github/workflows/greetings.yml b/.github/workflows/greetings.yml new file mode 100644 index 0000000..bfd82b9 --- /dev/null +++ b/.github/workflows/greetings.yml @@ -0,0 +1,16 @@ +name: Greetings + +on: [pull_request_target, issues] + +jobs: + greeting: + runs-on: ubuntu-latest + permissions: + issues: write + pull-requests: write + steps: + - uses: actions/first-interaction@v1 + with: + repo-token: ${{ secrets.GITHUB_TOKEN }} + issue-message: 'Thank you for creating your first issue in this repository. We appreciate your contribution and will review it as soon as possible.' + pr-message: 'Thank you for creating your first pull request in this repository. We appreciate your contribution and will review it as soon as possible.' From b16cd940da4d57fddbd50485df8855d323091f9a Mon Sep 17 00:00:00 2001 From: Breno A Date: Thu, 11 Jan 2024 13:03:32 -0300 Subject: [PATCH 03/10] Fix: Remove unused code --- .github/workflows/maven.yml | 4 ---- 1 file changed, 4 deletions(-) diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml index 3a039a6..1b888d5 100644 --- a/.github/workflows/maven.yml +++ b/.github/workflows/maven.yml @@ -29,7 +29,3 @@ jobs: cache: maven - name: Build with Maven run: mvn -B package --file pom.xml - - # Optional: Uploads the full dependency graph to GitHub to improve the quality of Dependabot alerts this repository can receive - - name: Update dependency graph - uses: advanced-security/maven-dependency-submission-action@571e99aab1055c2e71a1e2309b9691de18d6b7d6 From 8230b02b33803b0f835175f3c86c4e26564c5707 Mon Sep 17 00:00:00 2001 From: Breno A Date: Thu, 11 Jan 2024 13:04:14 -0300 Subject: [PATCH 04/10] Fix: Add SourceEncoding UTF-8 --- pom.xml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index 5009991..1fea301 100644 --- a/pom.xml +++ b/pom.xml @@ -43,6 +43,9 @@ + + UTF-8 + jitpack.io @@ -89,4 +92,4 @@ compile - \ No newline at end of file + From 64e0a07f824e19987ffa84c80fa5a20c765e9afb Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Thu, 11 Jan 2024 16:10:55 +0000 Subject: [PATCH 05/10] Build(deps): Bump com.fasterxml.jackson.core:jackson-databind Bumps [com.fasterxml.jackson.core:jackson-databind](https://github.com/FasterXML/jackson) from 2.16.0 to 2.16.1. - [Commits](https://github.com/FasterXML/jackson/commits) --- updated-dependencies: - dependency-name: com.fasterxml.jackson.core:jackson-databind dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] --- pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index 1fea301..485df2f 100644 --- a/pom.xml +++ b/pom.xml @@ -72,7 +72,7 @@ com.fasterxml.jackson.core jackson-databind - 2.16.0 + 2.16.1 com.google.guava From 5d017dfca5f2dbbfd08a73741ddac2bde03bd479 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Thu, 11 Jan 2024 16:10:56 +0000 Subject: [PATCH 06/10] Build(deps): Bump org.apache.logging.log4j:log4j-api Bumps org.apache.logging.log4j:log4j-api from 2.20.0 to 2.22.1. --- updated-dependencies: - dependency-name: org.apache.logging.log4j:log4j-api dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] --- pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index 1fea301..ae15706 100644 --- a/pom.xml +++ b/pom.xml @@ -62,7 +62,7 @@ org.apache.logging.log4j log4j-api - 2.20.0 + 2.22.1 org.apache.logging.log4j From 64e406b9fca7ceae1dc4e3f290f843bb21556c1f Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Thu, 11 Jan 2024 16:10:57 +0000 Subject: [PATCH 07/10] Build(deps): Bump org.apache.logging.log4j:log4j-core Bumps org.apache.logging.log4j:log4j-core from 2.20.0 to 2.22.1. --- updated-dependencies: - dependency-name: org.apache.logging.log4j:log4j-core dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] --- pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index 1fea301..65555df 100644 --- a/pom.xml +++ b/pom.xml @@ -67,7 +67,7 @@ org.apache.logging.log4j log4j-core - 2.20.0 + 2.22.1 com.fasterxml.jackson.core From f02c01768e67b991d63b2a10266970222074d265 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Thu, 11 Jan 2024 16:11:02 +0000 Subject: [PATCH 08/10] Build(deps): Bump org.mockito:mockito-junit-jupiter from 5.2.0 to 5.8.0 Bumps [org.mockito:mockito-junit-jupiter](https://github.com/mockito/mockito) from 5.2.0 to 5.8.0. - [Release notes](https://github.com/mockito/mockito/releases) - [Commits](https://github.com/mockito/mockito/compare/v5.2.0...v5.8.0) --- updated-dependencies: - dependency-name: org.mockito:mockito-junit-jupiter dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] --- pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index 1fea301..f89f4d2 100644 --- a/pom.xml +++ b/pom.xml @@ -88,7 +88,7 @@ org.mockito mockito-junit-jupiter - 5.2.0 + 5.8.0 compile From c6c928a9340c288e4973528b4fc4b2721322dcea Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Thu, 11 Jan 2024 16:11:05 +0000 Subject: [PATCH 09/10] Build(deps): Bump org.apache.maven.plugins:maven-compiler-plugin Bumps [org.apache.maven.plugins:maven-compiler-plugin](https://github.com/apache/maven-compiler-plugin) from 3.8.1 to 3.12.1. - [Release notes](https://github.com/apache/maven-compiler-plugin/releases) - [Commits](https://github.com/apache/maven-compiler-plugin/compare/maven-compiler-plugin-3.8.1...maven-compiler-plugin-3.12.1) --- updated-dependencies: - dependency-name: org.apache.maven.plugins:maven-compiler-plugin dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] --- pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index 1fea301..9bd7397 100644 --- a/pom.xml +++ b/pom.xml @@ -20,7 +20,7 @@ org.apache.maven.plugins maven-compiler-plugin - 3.8.1 + 3.12.1 9 9 From a918fb12b3e4d0aaf893fcbcb571d5e074d8e1c9 Mon Sep 17 00:00:00 2001 From: Breno A Date: Thu, 11 Jan 2024 13:15:27 -0300 Subject: [PATCH 10/10] Feature: Add CodeCov --- .github/workflows/maven.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml index 1b888d5..d1801ee 100644 --- a/.github/workflows/maven.yml +++ b/.github/workflows/maven.yml @@ -29,3 +29,7 @@ jobs: cache: maven - name: Build with Maven run: mvn -B package --file pom.xml + - name: Upload coverage reports to Codecov + uses: codecov/codecov-action@v3 + env: + CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}