Skip to content

Commit 141b728

Browse files
ci: skip int and sample tests from forks (#381)
1 parent eefa48b commit 141b728

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

.github/workflows/tests.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,10 @@ jobs:
119119
120120
system-tests:
121121
name: System tests
122+
# run integration tests on all builds except pull requests from forks or dependabot
123+
if: |
124+
github.event_name != 'pull_request' ||
125+
(github.event.pull_request.head.repo.full_name == github.repository && github.actor != 'dependabot[bot]')
122126
strategy:
123127
matrix:
124128
node-version: [v14.x, v16.x, v20.x]
@@ -265,6 +269,10 @@ jobs:
265269
266270
sample-tests:
267271
name: Sample tests
272+
# run sample tests on all builds except pull requests from forks or dependabot
273+
if: |
274+
github.event_name != 'pull_request' ||
275+
(github.event.pull_request.head.repo.full_name == github.repository && github.actor != 'dependabot[bot]')
268276
permissions:
269277
contents: read
270278
id-token: write

0 commit comments

Comments
 (0)