Skip to content

Commit 6407a4f

Browse files
authored
Merge pull request #709 from futa-ikeda/chore/eng-9612-gha
[ENG-9612] Github actions
2 parents 15117fb + 4351c9e commit 6407a4f

5 files changed

Lines changed: 22 additions & 158 deletions

File tree

‎.github/rules/All Branch Rules.json‎

Lines changed: 0 additions & 37 deletions
This file was deleted.

‎.github/rules/Main_Develop Branch Rules.json‎

Lines changed: 0 additions & 52 deletions
This file was deleted.

‎.github/workflows/review.yml‎

Lines changed: 0 additions & 51 deletions
This file was deleted.

‎.github/workflows/test.yml‎

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,13 @@ name: Run Jest Tests
22

33
on:
44
pull_request:
5-
branches: ['*'] # or change to match your default branch
65
push:
7-
branches: ['*']
6+
branches:
7+
- develop
8+
- main
9+
- 'release/*'
10+
- 'hotfix/*'
11+
- 'feature/*' ## TODO: For testing purpose only, remove later
812
workflow_dispatch:
913

1014
jobs:

‎.husky/pre-push‎

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,20 @@
11
# npm run build
22

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

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

0 commit comments

Comments
 (0)