Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@
#
# SPDX-License-Identifier: Apache-2.0

# Tests run for all PRs including community contributions from forks.
# Note: Current tests don't require secrets. If plugin tests are re-enabled,
# we would need to use workflow_run pattern for privileged operations.

name: Test
on:
push:
Expand All @@ -12,8 +16,6 @@ on:
jobs:
build:
name: Test
# Don't run tests for PRs on forks
if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.fork == false
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
Expand All @@ -40,7 +42,7 @@ jobs:
plugins:
- 'plugins/**'
- name: Test agents
if: steps.filter.outputs.agents-or-tests == 'true' || github.event_name != 'pull_request'
if: steps.filter.outputs.agents-or-tests == 'true' || github.event_name == 'push'
run: pnpm test agents
# TODO (AJS-83) Re-enable once plugins are refactored with abort controllers
# - name: Test all plugins
Expand Down