Skip to content

Commit 77d95fd

Browse files
committed
also run node unit tests affected only
1 parent cfad7f9 commit 77d95fd

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

.github/workflows/build.yml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -540,10 +540,19 @@ jobs:
540540
uses: ./.github/actions/restore-cache
541541
env:
542542
DEPENDENCY_CACHE_KEY: ${{ needs.job_build.outputs.dependency_cache_key }}
543-
- name: Run tests
543+
544+
- name: Run affected tests
545+
run: yarn test:pr:node
546+
if: github.event_name == 'pull_request'
544547
env:
545548
NODE_VERSION: ${{ matrix.node }}
549+
550+
- name: Run all tests
546551
run: yarn test:ci:node
552+
if: github.event_name != 'pull_request'
553+
env:
554+
NODE_VERSION: ${{ matrix.node }}
555+
547556
- name: Compute test coverage
548557
uses: codecov/codecov-action@v4
549558
with:

0 commit comments

Comments
 (0)