From c1d3b369a5a0e3c7017caf4e20d5d30cfd66bd4d Mon Sep 17 00:00:00 2001 From: Reynaldi Chernando Date: Wed, 24 Dec 2025 22:37:58 +0700 Subject: [PATCH] Adjust actions for PR test --- .github/workflows/npm-build.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/npm-build.yml b/.github/workflows/npm-build.yml index c75fe58..c2c4704 100644 --- a/.github/workflows/npm-build.yml +++ b/.github/workflows/npm-build.yml @@ -1,7 +1,7 @@ -# This workflow will run tests using node on every push +# This workflow will run tests using node on every push and pull request name: Build package -on: push +on: [push, pull_request] jobs: build: @@ -26,6 +26,7 @@ jobs: - name: Run tests & coverage run: pnpm run coverage - name: Upload coverage reports to Codecov + if: github.event_name != 'pull_request' uses: codecov/codecov-action@v5 with: token: ${{ secrets.CODECOV_TOKEN }}