Skip to content

Latest commit

 

History

History
61 lines (54 loc) · 1.48 KB

File metadata and controls

61 lines (54 loc) · 1.48 KB

Contributing

Natural Workflow

  • Set up development enviroment.

  • Pull updates

    git pull
  • Checkout new branch.

    • for new branches:
      git checkout -b <branch_name> # for new branhces
      or
      git branch <branch_name>
      git checkout <branch_name>
    • for existing branches:
      git checkout <branch_name>
  • Program

  • Compile and deploy code

    pio run # Compiles
    pio run -t upload # Deploys

    or use the GUI:

    Build Icon Upload Icon

  • Run Tests

    pio test

    or use the GUI:

    Upload Icon

  • Finally push changes to repository

    git add -A
    git commit -m "<commit_type>(<package>): <description>"
    git push # git push -u origin <branch_name> if it is a new branch

    Note that the commit message should more or less follow the Conventional Commits norms

  • Create a Pull Request to the main branch, assigning yourself and selecting reviewers

  • Verify successful workflows

Notes on compilation, testing and platformio

When you perform any pio actions, you are performing them on all default environments. If you want to run tests on a specific environment:

pio test --environment [environment_name]

or compile and deploy...

pio run -t upload --environment [environment_name]