From 4ec127a0fddccfd7a3925c469e25ae9c84106c04 Mon Sep 17 00:00:00 2001 From: Florian CHAZAL Date: Fri, 14 Jan 2022 09:46:55 +0100 Subject: [PATCH 1/2] fix trigger for gh actions linting andctesting PR from fork --- .github/workflows/{on-push.yml => pr_lint_and_test.yml} | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) rename .github/workflows/{on-push.yml => pr_lint_and_test.yml} (93%) diff --git a/.github/workflows/on-push.yml b/.github/workflows/pr_lint_and_test.yml similarity index 93% rename from .github/workflows/on-push.yml rename to .github/workflows/pr_lint_and_test.yml index e7982a8e94..d25d8c69f9 100644 --- a/.github/workflows/on-push.yml +++ b/.github/workflows/pr_lint_and_test.yml @@ -1,9 +1,7 @@ name: on-push-event on: - push: - branches: - - '**' # matches every branch - - '!main' + pull_request: + types: [opened, synchronize] jobs: on_push: runs-on: ubuntu-latest From 5fd48596c503c320dc319d945a32187119714ede Mon Sep 17 00:00:00 2001 From: Florian Chazal Date: Tue, 18 Jan 2022 14:37:05 +0100 Subject: [PATCH 2/2] Rename workflow to match file name --- .github/workflows/pr_lint_and_test.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/pr_lint_and_test.yml b/.github/workflows/pr_lint_and_test.yml index d25d8c69f9..3e842d2477 100644 --- a/.github/workflows/pr_lint_and_test.yml +++ b/.github/workflows/pr_lint_and_test.yml @@ -1,4 +1,4 @@ -name: on-push-event +name: pr-lint-and-test on: pull_request: types: [opened, synchronize] @@ -43,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