diff --git a/.github/workflows/codecov.yml b/.github/workflows/codecov.yml new file mode 100644 index 0000000..4ebee10 --- /dev/null +++ b/.github/workflows/codecov.yml @@ -0,0 +1,20 @@ +name: Workflow for Codecov +on: [push, pull_request] +jobs: + run: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v4 + - name: Set up JDK 18 + uses: actions/setup-java@v1 + with: + java-version: 18 + - name: Install dependencies + run: mvn install -DskipTests=true -Dmaven.javadoc.skip=true -B -V + - name: Run tests and collect coverage + run: mvn -B test + - name: Upload coverage to Codecov + uses: codecov/codecov-action@v4-beta + env: + CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml index d1801ee..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 - - 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 de89bf7..57ae562 100644 --- a/pom.xml +++ b/pom.xml @@ -1,95 +1,113 @@ - - 4.0.0 - tech.brenoepic - at4j - 0.0.1 - - Azure Translator For Java - + 4.0.0 + tech.brenoepic + at4j + 0.0.1 + Azure Translator For Java + A simple Java library to translate text using Azure AI Cognitive Services. Fast and easy to configure. - https://github.com/brenoepics/at4j - - - - - - org.apache.maven.plugins - maven-compiler-plugin - 3.12.1 - - 9 - 9 - - - - - - org.apache.maven.plugins - maven-jar-plugin - 3.1.0 - - - - true - tech.brenoepic.at4j.AT4J - - - - - - - - UTF-8 - - - - jitpack.io - https://jitpack.io - - - - - com.squareup.okhttp3 - okhttp - 4.12.0 - compile - - - org.apache.logging.log4j - log4j-api - 2.22.1 - - - org.apache.logging.log4j - log4j-core - 2.22.1 - - - com.fasterxml.jackson.core - jackson-databind - 2.16.1 - - - com.google.guava - guava - 33.0.0-jre - - - org.mockito - mockito-inline - 5.2.0 - compile - - - org.mockito - mockito-junit-jupiter - 5.8.0 - compile - - + https://github.com/brenoepics/at4j + + + + + org.apache.maven.plugins + maven-compiler-plugin + 3.12.1 + + 9 + 9 + + + + + org.apache.maven.plugins + maven-jar-plugin + 3.1.0 + + + + true + tech.brenoepic.at4j.AT4J + + + + + + org.jacoco + jacoco-maven-plugin + 0.8.11 + + + prepare-agent + + prepare-agent + + + + report + test + + report + + + + + + + + UTF-8 + + + + jitpack.io + https://jitpack.io + + + + + com.squareup.okhttp3 + okhttp + 4.12.0 + compile + + + org.apache.logging.log4j + log4j-api + 2.22.1 + + + org.apache.logging.log4j + log4j-core + 2.22.1 + + + com.fasterxml.jackson.core + jackson-databind + 2.16.1 + + + com.google.guava + guava + 33.0.0-jre + + + org.mockito + mockito-inline + 5.2.0 + compile + + + org.mockito + mockito-junit-jupiter + 5.8.0 + compile + +