Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
37 changes: 0 additions & 37 deletions .github/rules/All Branch Rules.json

This file was deleted.

52 changes: 0 additions & 52 deletions .github/rules/Main_Develop Branch Rules.json

This file was deleted.

51 changes: 0 additions & 51 deletions .github/workflows/review.yml

This file was deleted.

8 changes: 6 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,13 @@ name: Run Jest Tests

on:
pull_request:
branches: ['*'] # or change to match your default branch
push:
branches: ['*']
branches:
- develop
- main
- 'release/*'
- 'hotfix/*'
- 'feature/*' ## TODO: For testing purpose only, remove later
workflow_dispatch:

jobs:
Expand Down
32 changes: 16 additions & 16 deletions .husky/pre-push
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
# npm run build

npm run test:coverage || {
printf "\n\nERROR: Testing errors or coverage issues are found."
printf "\n\nIn the future this will block your ability to push to github until it is resolved."
printf "\n\nThe same pipeline runs via GitHub actions."
printf "\n\nYou are seeing this error because code was added without test coverage."
# printf "\n\n Please address them before proceeding.\n\n\n\n"
# exit 1
}
# npm run test:coverage || {
# printf "\n\nERROR: Testing errors or coverage issues are found."
# printf "\n\nIn the future this will block your ability to push to github until it is resolved."
# printf "\n\nThe same pipeline runs via GitHub actions."
# printf "\n\nYou are seeing this error because code was added without test coverage."
# # printf "\n\n Please address them before proceeding.\n\n\n\n"
# # exit 1
# }

npm run test:check-coverage-thresholds || {
printf "\n\nERROR: Coverage thresholds are not met."
printf "\n\nIn the future this will block your ability to push to github until it is resolved."
printf "\n\nThe same pipeline runs via GitHub actions."
printf "\n\nYou are seeing this error because test coverage increased without updating the jest.config.js thresholds."
#printf "\n\nPlease address them before proceeding.\n\n\n\n"
# exit 1
}
# npm run test:check-coverage-thresholds || {
# printf "\n\nERROR: Coverage thresholds are not met."
# printf "\n\nIn the future this will block your ability to push to github until it is resolved."
# printf "\n\nThe same pipeline runs via GitHub actions."
# printf "\n\nYou are seeing this error because test coverage increased without updating the jest.config.js thresholds."
# #printf "\n\nPlease address them before proceeding.\n\n\n\n"
# # exit 1
# }