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.' diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml new file mode 100644 index 0000000..d1801ee --- /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 + - name: Upload coverage reports to Codecov + uses: codecov/codecov-action@v3 + env: + CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} diff --git a/pom.xml b/pom.xml index 5009991..de89bf7 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 @@ -43,6 +43,9 @@ + + UTF-8 + jitpack.io @@ -59,17 +62,17 @@ org.apache.logging.log4j log4j-api - 2.20.0 + 2.22.1 org.apache.logging.log4j log4j-core - 2.20.0 + 2.22.1 com.fasterxml.jackson.core jackson-databind - 2.16.0 + 2.16.1 com.google.guava @@ -85,8 +88,8 @@ org.mockito mockito-junit-jupiter - 5.2.0 + 5.8.0 compile - \ No newline at end of file +