Files
runner/docs/contribute.md
T

41 lines
1.2 KiB
Markdown
Raw Normal View History

2019-11-05 14:21:50 -08:00
# Contribution guide for developers
2019-10-10 00:52:42 -04:00
2019-11-05 14:21:50 -08:00
## Required Dev Dependencies
2019-10-10 00:52:42 -04:00
![Win](res/win_sm.png) Git for Windows [Install Here](https://git-scm.com/downloads) (needed for dev sh script)
2019-11-05 14:21:50 -08:00
## To Build, Test, Layout
2019-10-10 00:52:42 -04:00
2019-11-05 14:21:50 -08:00
Navigate to the `src` directory and run the following command:
2019-10-10 00:52:42 -04:00
![Win](res/win_sm.png) `dev {command}`
![*nix](res/linux_sm.png) `./dev.sh {command}`
**Commands:**
2019-11-05 14:21:50 -08:00
* `layout` (`l`): Run first time to create a full agent layout in `{root}/_layout`
* `build` (`b`): Build everything and update agent layout folder
* `test` (`t`): Build agent binaries and run unit tests
2019-10-10 00:52:42 -04:00
2019-11-05 14:21:50 -08:00
Sample developer flow:
2019-10-10 00:52:42 -04:00
```bash
git clone https://github.com/actions/runner
cd ./src
./dev.(sh/cmd) layout # the agent 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](https://www.visualstudio.com/vs/)
[Using Visual Studio Code](https://code.visualstudio.com/)
## Styling
2019-11-05 14:21:50 -08:00
We use the .NET Foundation and CoreCLR style guidelines [located here](
2019-10-10 00:52:42 -04:00
https://github.com/dotnet/corefx/blob/master/Documentation/coding-guidelines/coding-style.md)