A small set of modules written in Node.js for running automated tests of MATLAB code in response to GitHub events. Also submits code coverage to the Coveralls API.
Run the install script to install all dependencies, then create your .env file containing your App's tokens, secrets, etc.
Requires MATLAB 2017a or later and Node.js. The following Node.js modules are required:
npm install --save express dotenv @octokit/app @octokit/request ...
github-webhook-handler smee-client xml2js
Make sure runAllTests.m is on your MATLAB paths
TODO
Explain what these tests test and why
Give an example
Explain what these tests test and why
Give an example
To work properly you need to create install a Github app on your target repository and download the private key. Update your .env file like so:
GITHUB_PRIVATE_KEY=path\to\private-key.pem
GITHUB_APP_IDENTIFIER=1234
GITHUB_WEBHOOK_SECRET=
WEBHOOK_PROXY_URL=https://smee.io/abcd
RIGBOX_REPO_PATH=C:\Path\To\Code\Repo
COVERALLS_TOKEN=
To run at startup create a batch file with the following command:
cmd /k node -r dotenv/config dotenv_config_path=/Path/To/Env/Vars ./Path/To/index.js Create a shortcut in your startup folder ([Windows-logo] + [R] in Windows-10 and enter the command shell:startup)
- Coveralls - Code coverage
Please read CONTRIBUTING.md for details on our code of conduct, and the process for submitting pull requests to us.
We use SemVer for versioning. For the versions available, see the tags on this repository.
- Miles Wells
This project is licensed under the MIT License - see the LICENSE.md file for details