Run build-and-test workflow on all PRs to master #851
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Some PRs have run the build-and-test job (eg #849 + #841), but some haven't (eg #840 + #838)
I'm unsure why this happens, but one guess is the missing
branches: [master]
on thepull_request
trigger.This matches the trigger in eg web3js: https://github.com/solana-labs/solana-web3.js/blob/fdc85b98edc4bd7a74c5bd10128d5397bce368a7/.github/workflows/pull-requests.yml#L3-L5
The github docs also only seem to give examples that include a filter, eg https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#onpull_requestpull_request_targetbranchesbranches-ignore
I'm hoping this will make all PRs run the build-and-test workflow!