mLRS icon indicating copy to clipboard operation
mLRS copied to clipboard

Add GitHub actions to test ESP builds as a automated merge check for PRs

Open tmcadam opened this issue 10 months ago • 0 comments

This contains a simple github action that runs a pio run on pushes to either main or any branch beginning with dev-esp. This will test that all ESP targets compile. This can be configured as a branch protection for main meaning any PR to main must have a successful run of this action, before the merge button is enabled (override is possible by admins).

The binaries produced by pio run are discarded.

Based on: https://docs.platformio.org/en/stable/integration/ci/github-actions.html#using-cmd-run-command

Other automated checks we could consider are:

  • run the same check with the stm32 tergets
  • check that debug is disabled in all hal files

This has been tested and is ready to merge. Once merged it won't have any impact on current workflows until enabled as a branch protection in the Github GUI.

tmcadam avatar Apr 14 '24 15:04 tmcadam