Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: skip integration tests on fork PRs #2282

Merged
merged 2 commits into from
Aug 2, 2024
Merged

Conversation

jackwotherspoon
Copy link
Collaborator

Pull request from forks once merged will still be skipped because github.event.pull_request.head.repo.full_name will still be that of the fork.

To combat this we run the job on all events that are not a pull_request (aka schedule and push)

@jackwotherspoon jackwotherspoon self-assigned this Aug 2, 2024
@jackwotherspoon jackwotherspoon requested a review from a team as a code owner August 2, 2024 14:24
@jackwotherspoon
Copy link
Collaborator Author

@enocom it seems for the Proxy we only have one test suite that runs unit + integration tests which means for forks no tests will be run.

I wonder if we should follow the Go Connector and other repos where we have one suite for just unit tests and one suite for unit + integration? This way fork PRs will still have unit tests run...

@enocom
Copy link
Member

enocom commented Aug 2, 2024

Yes, good point. Since we're having to skip integration tests for forks, it's probably a good idea to split out the unit tests before merging this. WDYT?

@jackwotherspoon jackwotherspoon merged commit 2115513 into main Aug 2, 2024
13 checks passed
@jackwotherspoon jackwotherspoon deleted the skip-int-tests-fork branch August 2, 2024 16:25
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.

2 participants