diff --git a/.github/workflows/lint-ts.yml b/.github/workflows/lint-ts.yml index bb336ca7..2511c1a6 100644 --- a/.github/workflows/lint-ts.yml +++ b/.github/workflows/lint-ts.yml @@ -3,7 +3,7 @@ # ✍️ Description: # This action is used to run eslint checks -# Runs on pull requests and pushes to the main/master branches +# Runs on any pull request, and also when pushing to main/master # Based on the event type: # - If it's a pull request, it will run eslint, then add the check to the PR as well as annotate the code with the errors and warnings. # - If it's a push to main/master, it will run the type checking and fail if there are any errors. @@ -16,7 +16,7 @@ on: push: branches: [main, master] pull_request: - branches: [main, master] + types: [opened, synchronize] jobs: lint: diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index ff6c5b68..c4891770 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -3,7 +3,7 @@ # ✍️ Description: # This action is used to run unit tests -# Runs on pull requests and pushes to the main/master branches +# Runs on any pull request, and also when pushing to main/master # Based on the event type: # - If it's a pull request, it will run the tests and post a comment with coverage details. # - If it's a push to main/master, it will run the tests and add the check to the commit. @@ -16,7 +16,7 @@ on: push: branches: [main, master] pull_request: - branches: [main, master] + types: [opened, synchronize] jobs: test: diff --git a/.github/workflows/type-check.yml b/.github/workflows/type-check.yml index 33aebe4f..939510fd 100644 --- a/.github/workflows/type-check.yml +++ b/.github/workflows/type-check.yml @@ -3,7 +3,7 @@ # ✍️ Description: # This action is used to run the type-check on the project. -# Runs on pull requests and pushes to the main/master branches +# Runs on any pull request, and also when pushing to main/master # Based on the event type: # - If it's a pull request, it will run type checking, then add the check to the PR as well as annotate the code with the errors using reviewdog. # - If it's a push to main/master, it will run the type checking and fail if there are any errors. @@ -16,7 +16,7 @@ on: push: branches: [main, master] pull_request: - branches: [main, master] + types: [opened, synchronize] jobs: type-check: