diff --git a/.github/workflows/on-push.yml b/.github/workflows/pr_lint_and_test.yml similarity index 89% rename from .github/workflows/on-push.yml rename to .github/workflows/pr_lint_and_test.yml index e7982a8e94..3e842d2477 100644 --- a/.github/workflows/on-push.yml +++ b/.github/workflows/pr_lint_and_test.yml @@ -1,9 +1,7 @@ -name: on-push-event +name: pr-lint-and-test on: - push: - branches: - - '**' # matches every branch - - '!main' + pull_request: + types: [opened, synchronize] jobs: on_push: runs-on: ubuntu-latest @@ -45,4 +43,4 @@ jobs: uses: romeovs/lcov-reporter-action@v0.3.1 with: github-token: ${{ secrets.GITHUB_TOKEN }} - lcov-file: ./coverage/lcov.info \ No newline at end of file + lcov-file: ./coverage/lcov.info