diff --git a/.github/workflows/build-and-push.yaml b/.github/workflows/build-and-push.yaml index 34cb6a5..b199bfc 100644 --- a/.github/workflows/build-and-push.yaml +++ b/.github/workflows/build-and-push.yaml @@ -32,7 +32,7 @@ jobs: run: | curl -L https://huggingface.co/nomic-ai/nomic-embed-text-v1/resolve/main/onnx/model_quantized.onnx?download=true --output src/main/resources/embeddings/nomic/model.onnx - name: Build with Maven - run: mvn -B package --file pom.xml + run: mvn -B package --file pom.xml -P github-action - name: Archive target folder uses: actions/upload-artifact@v4 with: diff --git a/checkstyle.xml b/checkstyle.xml index d00b19a..318aeb6 100644 --- a/checkstyle.xml +++ b/checkstyle.xml @@ -22,7 +22,7 @@ - + diff --git a/pom.xml b/pom.xml index 7bad33e..ef2db2a 100644 --- a/pom.xml +++ b/pom.xml @@ -231,9 +231,11 @@ checkstyle.xml checkstyle-suppressions.xml + true + validate check @@ -257,6 +259,33 @@ + + + github-action + + + + org.apache.maven.plugins + maven-checkstyle-plugin + ${checkstyle-maven-plugin.version} + + checkstyle.xml + checkstyle-suppressions.xml + warning + true + + + + + check + + + + + + + + security-scanner @@ -284,6 +313,34 @@ + + + checkstyle + + + + + org.apache.maven.plugins + maven-checkstyle-plugin + ${checkstyle-maven-plugin.version} + + checkstyle.xml + checkstyle-suppressions.xml + true + warning + + + + validate + + check + + + + + + + @@ -295,6 +352,7 @@ checkstyle.xml checkstyle-suppressions.xml + true