Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 55a6f9e

Browse files
authored
Merge pull request #94 from github/developer-docs
Add development instructions to CONTRIBUTING.md
2 parents de7ff14 + dfed1f7 commit 55a6f9e

1 file changed

Lines changed: 18 additions & 0 deletions

File tree

CONTRIBUTING.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,24 @@ Contributions to this project are [released](https://help.github.com/articles/gi
1010

1111
Please note that this project is released with a [Contributor Code of Conduct][code-of-conduct]. By participating in this project you agree to abide by its terms.
1212

13+
## Development and Testing
14+
15+
Before you start, ensure that you have a recent version of node installed. You can see which version of node is used by the action in `init/action.yml`.
16+
17+
### Common tasks
18+
19+
* Transpile the TypeScript to JavaScript: `npm run build`. Note that the JavaScript files are committed to git.
20+
* Run tests: `npm run test`. You’ll need to ensure that the JavaScript files are up-to-date first by running the command above.
21+
* Run the linter: `npm run lint`.
22+
23+
### Running the action
24+
25+
To see the effect of your changes and to test them, push your changes in a branch and then look at the [Actions output](https://github.com/github/codeql-action/actions) for that branch. You can also exercise the code locally by running the automated tests.
26+
27+
### Integration tests
28+
29+
As well as the unit tests (see _Common tasks_ above), there are integration tests, defined in `.github/workflows/integration-testing.yml`. These are run by a CI check. Depending on the change you’re making, you may want to add a test to this file or extend an existing one.
30+
1331
## Submitting a pull request
1432

1533
1. [Fork][fork] and clone the repository

0 commit comments

Comments
 (0)