Files
runner/docs/contribute.md
2019-12-18 15:28:36 -05:00

1.2 KiB

Contribution guide for developers

Required Dev Dependencies

Win Git for Windows Install Here (needed for dev sh script)

To Build, Test, Layout

Navigate to the src directory and run the following command:

Win dev {command}

*nix ./dev.sh {command}

Commands:

  • layout (l): Run first time to create a full runner layout in {root}/_layout
  • build (b): Build everything and update runner layout folder
  • test (t): Build runner binaries and run unit tests

Sample developer flow:

git clone https://github.com/actions/runner
cd ./src
./dev.(sh/cmd) layout # the runner that build from source is in {root}/_layout
<make code changes>
./dev.(sh/cmd) build # {root}/_layout will get updated
./dev.(sh/cmd) test # run all unit tests before git commit/push

Editors

Using Visual Studio 2019
Using Visual Studio Code

Styling

We use the .NET Foundation and CoreCLR style guidelines located here