Skip to content

Conversation

@TaprootFreak
Copy link
Collaborator

@TaprootFreak TaprootFreak commented Jan 3, 2026

Summary

  • Remove if: github.head_ref != 'develop' condition from PR workflow
  • Previously, PRs from develop to main skipped the "Build and test" job entirely
  • Now tests run on all PRs regardless of source branch

Root Cause

Detail Info
Condition if: github.head_ref != 'develop'
Added by David May on 23.02.2024
Commit be12683 - when pr.yml was first created

The condition was present from the start, likely copied from another workflow or a misunderstanding of the intended behavior.

Test plan

  • Verify this PR triggers the "Build and test" job

The PR workflow was configured to skip "Build and test" job when the
source branch was develop. This meant PRs from develop to main never
ran tests, defeating the purpose of CI validation before production.

Now tests run on all PRs regardless of source branch.
@davidleomay
Copy link
Member

This condition is there because a push to develop triggers CI workflow which also executes tests.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants