mirror of
https://github.com/amithkoujalgi/ollama4j.git
synced 2025-05-15 03:47:13 +02:00
Add integration test step to CI workflow
Previously, only unit tests were run during the PR workflow. This update introduces a separate step to run integration tests, ensuring broader test coverage. It enhances build verification by validating both unit and integration aspects.
This commit is contained in:
parent
0d091d1826
commit
cf2c510b23
5
.github/workflows/build-on-pr-create.yml
vendored
5
.github/workflows/build-on-pr-create.yml
vendored
@ -30,5 +30,8 @@ jobs:
|
||||
- name: Build with Maven
|
||||
run: mvn --file pom.xml -U clean package
|
||||
|
||||
- name: Run Tests
|
||||
- name: Run unit tests
|
||||
run: mvn --file pom.xml -U clean test -Punit-tests
|
||||
|
||||
- name: Run integration tests
|
||||
run: mvn --file pom.xml -U clean verify -Pintegration-tests
|
38
.pre-commit-config.yaml
Normal file
38
.pre-commit-config.yaml
Normal file
@ -0,0 +1,38 @@
|
||||
repos:
|
||||
|
||||
# pre-commit hooks
|
||||
- repo: https://github.com/pre-commit/pre-commit-hooks
|
||||
rev: "v5.0.0"
|
||||
hooks:
|
||||
# - id: no-commit-to-branch
|
||||
# args: ['--branch', 'main']
|
||||
- id: check-merge-conflict
|
||||
- id: check-added-large-files
|
||||
- id: check-yaml
|
||||
- id: check-xml
|
||||
- id: check-json
|
||||
- id: pretty-format-json
|
||||
args: ['--no-sort-keys', '--autofix', '--indent=4']
|
||||
- id: end-of-file-fixer
|
||||
exclude: \.json$
|
||||
files: \.java$|\.xml$
|
||||
- id: trailing-whitespace
|
||||
- id: mixed-line-ending
|
||||
|
||||
# for commit message formatting
|
||||
- repo: https://github.com/commitizen-tools/commitizen
|
||||
rev: v4.1.1
|
||||
hooks:
|
||||
- id: commitizen
|
||||
stages: [commit-msg]
|
||||
|
||||
# # for java code quality
|
||||
# - repo: https://github.com/gherynos/pre-commit-java
|
||||
# rev: v0.6.10
|
||||
# hooks:
|
||||
# - id: pmd
|
||||
# exclude: /test/
|
||||
# - id: cpd
|
||||
# exclude: /test/
|
||||
# - id: checkstyle
|
||||
# exclude: /test/
|
Loading…
x
Reference in New Issue
Block a user