mirror of
https://github.com/actions/runner.git
synced 2025-12-10 04:06:57 +00:00
800 B
800 B
Making changes
Tests
Whenever possible, changes should be accompanied by non-trivial tests that meaningfully exercise the core functionality of the new code being introduced.
All tests are in the Test/ directory at the repo root. Fast unit tests are in the Test/L0 directory and by convention have the suffix L0.cs. For example: unit tests for a hypothetical src/Runner.Worker/Foo.cs would go in src/Test/L0/Worker/FooL0.cs.
Run tests using this command:
cd src && ./dev.sh test
Formatting
After editing .cs files, always format the code using this command:
cd src && ./dev.sh format
Feature Flags
Wherever possible, all changes should be safeguarded by a feature flag; Features are declared in Constants.cs.