olliw42 / mLRS

2.4 GHz & 915/868 MHz & 433 MHz/70 cm LoRa based telemetry and radio link for remote controlled vehicles
GNU General Public License v3.0
313 stars 72 forks source link

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

Open tmcadam opened 5 months ago

tmcadam commented 5 months ago

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:

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.