forked from thoughtworks/HeartBeat
-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
50 changed files
with
222 additions
and
154 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,4 +11,4 @@ updates: | |
- package-ecosystem: "npm" | ||
directory: "/" | ||
schedule: | ||
interval: "weekly" | ||
interval: "weekly" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -135,5 +135,3 @@ jobs: | |
uses: softprops/action-gh-release@v2 | ||
with: | ||
files: ${{ env.REPO_NAME }}-${{ env.TAG_NAME }}.zip | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,87 @@ | ||
default_install_hook_types: [pre-commit, pre-push, commit-msg] | ||
|
||
repos: | ||
- repo: local | ||
hooks: | ||
- id: eslint | ||
name: ESLint | ||
entry: cd frontend && npm run lint | ||
language: system | ||
stages: | ||
- pre-commit | ||
- id: ts-check | ||
name: TSC check | ||
entry: cd frontend && tsc-files --noEmit | ||
language: system | ||
stages: | ||
- pre-commit | ||
- id: ts-type-check | ||
name: TS type check | ||
entry: cd frontend && npm run type-check | ||
language: system | ||
stages: | ||
- pre-commit | ||
- id: prettier | ||
name: Prettier | ||
entry: cd frontend && npx prettier --write . --ignore-unknown | ||
language: system | ||
stages: | ||
- pre-commit | ||
- id: test-check | ||
name: Test coverage for the whole project | ||
entry: cd frontend && pnpm run coverage:silent | ||
language: system | ||
pass_filenames: false | ||
require_serial: true | ||
stages: | ||
- pre-push | ||
- id: audit-check | ||
name: Vulnerability check | ||
entry: cd frontend && pnpm run audit | ||
language: system | ||
stages: | ||
- pre-push | ||
- id: license-check | ||
name: License compliance check | ||
entry: cd frontend && pnpm run license-compliance | ||
language: system | ||
stages: | ||
- pre-push | ||
- id: tag-check | ||
name: tag check | ||
entry: ./frontend/scripts/git-hooks/pre-tag.sh | ||
language: script | ||
stages: | ||
- commit-msg | ||
- id: check-building-for-frontend | ||
name: Check for building | ||
entry: cd frontend && pnpm run build | ||
language: system | ||
pass_filenames: false | ||
require_serial: true | ||
- id: check-building-for-backend | ||
name: Check for building | ||
entry: cd backend && ./gradlew clean check | ||
language: system | ||
pass_filenames: false | ||
require_serial: true | ||
|
||
- repo: https://github.com/pre-commit/pre-commit-hooks | ||
rev: v4.6.0 | ||
hooks: | ||
- id: check-yaml | ||
exclude: ops/infra/cloudformation.yml | ||
- id: end-of-file-fixer | ||
- id: trailing-whitespace | ||
- id: check-json | ||
- repo: https://github.com/koalaman/shellcheck-precommit | ||
rev: v0.7.2 | ||
hooks: | ||
- id: shellcheck | ||
exclude: frontend/.husky | ||
- repo: https://github.com/gitleaks/gitleaks | ||
rev: v8.18.4 | ||
hooks: | ||
- id: gitleaks | ||
stages: | ||
- pre-commit |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -36,4 +36,3 @@ heartbeat: | |
host: ${SWAGGER_HOST:http://localhost:4322} | ||
version: 1.2.1 | ||
expiredDays: ${EXPIRED_DAYS:7} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.