diff --git a/.github/workflows/build-on-pr-create.yml b/.github/workflows/build-on-pr-create.yml index 62dca67..f935dda 100644 --- a/.github/workflows/build-on-pr-create.yml +++ b/.github/workflows/build-on-pr-create.yml @@ -30,5 +30,8 @@ jobs: - name: Build with Maven run: mvn --file pom.xml -U clean package - - name: Run Tests - run: mvn --file pom.xml -U clean test -Punit-tests \ No newline at end of file + - 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 \ No newline at end of file diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml new file mode 100644 index 0000000..cf1cbba --- /dev/null +++ b/.pre-commit-config.yaml @@ -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/ \ No newline at end of file