From e6627653db4bca8dd024d8682020dbc9afdfa8da Mon Sep 17 00:00:00 2001 From: Nadeem Patwekar Date: Fri, 7 Nov 2025 14:28:11 +0530 Subject: [PATCH 1/4] fix: update ci.yml --- .github/workflows/ci.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 803ae7b..4c3af01 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -15,13 +15,15 @@ jobs: checks: write steps: - uses: actions/checkout@v3 + - name: Install dependencies + run: npm install - uses: ArtiomTr/jest-coverage-report-action@v2 id: coverage-utils-js continue-on-error: true with: output: comment, report-markdown test-script: npm test - skip-step: install + coverage-file: ./reports/report.json - uses: marocchino/sticky-pull-request-comment@v2 continue-on-error: true if: steps.coverage-utils-js.outputs.report != '' From 64f7262531a71ff47003faeace46d998da15362f Mon Sep 17 00:00:00 2001 From: Nadeem Patwekar Date: Fri, 7 Nov 2025 14:34:12 +0530 Subject: [PATCH 2/4] fix: update ci.yml --- .github/workflows/ci.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 4c3af01..14e80a4 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -19,13 +19,11 @@ jobs: run: npm install - uses: ArtiomTr/jest-coverage-report-action@v2 id: coverage-utils-js - continue-on-error: true with: output: comment, report-markdown test-script: npm test coverage-file: ./reports/report.json - uses: marocchino/sticky-pull-request-comment@v2 - continue-on-error: true if: steps.coverage-utils-js.outputs.report != '' with: header: Contentstack Utils JS Coverage From ddfd41098cf792f4ca8e2dd7f4f49b1b58548055 Mon Sep 17 00:00:00 2001 From: Nadeem Patwekar Date: Fri, 7 Nov 2025 14:38:10 +0530 Subject: [PATCH 3/4] fix: update ci.yml --- .github/workflows/ci.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 14e80a4..57e9167 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -17,13 +17,15 @@ jobs: - uses: actions/checkout@v3 - name: Install dependencies run: npm install - - uses: ArtiomTr/jest-coverage-report-action@v2 + - name: Coverage Utils JS + uses: ArtiomTr/jest-coverage-report-action@v2 id: coverage-utils-js with: output: comment, report-markdown test-script: npm test coverage-file: ./reports/report.json - - uses: marocchino/sticky-pull-request-comment@v2 + - name: Sticky Pull Request Comment + uses: marocchino/sticky-pull-request-comment@v2 if: steps.coverage-utils-js.outputs.report != '' with: header: Contentstack Utils JS Coverage From 0032ee0103d9827857d5f9a4500b87b9f4175d3e Mon Sep 17 00:00:00 2001 From: Nadeem Patwekar Date: Fri, 7 Nov 2025 14:41:38 +0530 Subject: [PATCH 4/4] fix: revert all ci.yml changes --- .github/workflows/ci.yml | 17 +++-------------- 1 file changed, 3 insertions(+), 14 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 57e9167..33b9343 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -9,24 +9,13 @@ on: jobs: build-test: runs-on: ubuntu-latest - permissions: - contents: read - pull-requests: write - checks: write steps: - uses: actions/checkout@v3 - - name: Install dependencies - run: npm install - - name: Coverage Utils JS - uses: ArtiomTr/jest-coverage-report-action@v2 + - uses: ArtiomTr/jest-coverage-report-action@v2 id: coverage-utils-js with: output: comment, report-markdown - test-script: npm test - coverage-file: ./reports/report.json - - name: Sticky Pull Request Comment - uses: marocchino/sticky-pull-request-comment@v2 - if: steps.coverage-utils-js.outputs.report != '' + - uses: marocchino/sticky-pull-request-comment@v2 with: header: Contentstack Utils JS Coverage recreate: true @@ -38,4 +27,4 @@ jobs: name: JEST Tests path: reports/junit/jest-*.xml reporter: jest-junit - fail-on-error: true + fail-on-error: true \ No newline at end of file