From befe97f5eb8e75a19e79b3e5a167a7b0369c4a50 Mon Sep 17 00:00:00 2001 From: gentlementlegen Date: Mon, 3 Jun 2024 13:59:21 +0900 Subject: [PATCH 1/3] chore: test reporting lib --- .github/workflows/jest-testing.yml | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/.github/workflows/jest-testing.yml b/.github/workflows/jest-testing.yml index 196fac9..966c702 100644 --- a/.github/workflows/jest-testing.yml +++ b/.github/workflows/jest-testing.yml @@ -1,10 +1,12 @@ name: Run Jest testing suite on: workflow_dispatch: - workflow_run: - workflows: ["Build"] - types: - - completed + pull_request_target: +# workflow_run: +# workflows: ["Build"] +# types: +# - completed + env: NODE_ENV: "test" From a45d97662d390ca3a17e390752225248370980d8 Mon Sep 17 00:00:00 2001 From: gentlementlegen Date: Mon, 3 Jun 2024 14:06:10 +0900 Subject: [PATCH 2/3] chore: find PR number --- .github/workflows/jest-testing.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/jest-testing.yml b/.github/workflows/jest-testing.yml index 966c702..3d1db3f 100644 --- a/.github/workflows/jest-testing.yml +++ b/.github/workflows/jest-testing.yml @@ -21,9 +21,12 @@ jobs: - uses: actions/checkout@master with: fetch-depth: 0 + - uses: jwalton/gh-find-current-pr@v1 + id: findPr - name: Jest With Coverage Comment # Ensures this step is run even on previous step failure (e.g. test failed) if: always() uses: ArtiomTr/jest-coverage-report-action@v2 with: package-manager: yarn + prnumber: ${{ steps.findPr.outputs.number }} From 6b9fa4f8fdad91d26cd7b721c2d563fee6d128e1 Mon Sep 17 00:00:00 2001 From: gentlementlegen Date: Mon, 3 Jun 2024 14:07:00 +0900 Subject: [PATCH 3/3] chore: remove event --- .github/workflows/jest-testing.yml | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/.github/workflows/jest-testing.yml b/.github/workflows/jest-testing.yml index 3d1db3f..55b4779 100644 --- a/.github/workflows/jest-testing.yml +++ b/.github/workflows/jest-testing.yml @@ -1,11 +1,10 @@ name: Run Jest testing suite on: workflow_dispatch: - pull_request_target: -# workflow_run: -# workflows: ["Build"] -# types: -# - completed + workflow_run: + workflows: ["Build"] + types: + - completed env: NODE_ENV: "test"