sparkplug/momoapi-node

Add Continuous Integration

Closed this issue · 3 comments

We need to add CI to facilitate automation of testing and npm publishing. I'm thinking we can use Travis although Circle CI will be a viable options as well.

For the start, the CI should publish to NPM when a PR is merged to master.

Progress

  • configure tslint
  • configure testing
  • configure semantic release
  • configure travis ci
  • add appropriate npm token and github token to Travis CI secrets

We still need to figure out if we should use a tool for this or not.

At this point, we have two options;

  • Tag locally on master and push tags to trigger an NPM publish. This is very simple to do but requires someone with write access to the repo. We could start with this since it doesn't require any additional work and we can start reaping benefits almost immediately
  • Integrate semantic-release so that tagging and publishing are both performed automatically when a pull request is merged. This will require some initial setup and change in the workflow but will reduce the workload in the future. It might also be an overkill considering the project and team size.

Whatever we decide to go with should work

I say we go with the first option for now though. We can always adapt as we go.