CI scaffolder for JavaScript projects on GitHub Actions
$ npm install @form8ion/github-actions-node-ci --save-prod
import {scaffold, lift, test} from '@form8ion/github-actions-node-ci';
(async () => {
await scaffold({
projectRoot: process.cwd(),
vcs: {
owner: 'repo-owner',
name: 'repo-name'
},
runner: 'hosted-runner-name' // optional. uses `ubuntu-latest` if not provided
});
await test({projectRoot: process.cwd()});
await lift({
projectRoot: process.cwd(),
results: {branchesToVerify: ['foo', 'bar']},
vcs: {owner: 'repo-owner', name: 'repo-name'},
runner: 'hosted-runner-name' // optional. uses `ubuntu-latest` if not provided
});
})();
$ nvm install
$ npm install
$ npm test