Collector Jira Workflow
Set up
- Install go version 1.19.x, golangci-lint
- Run
npm i
. - Use
go mod edit -module <your module name>
to change the name of your go project ingo.mod
(don't need to do this step unless you want to change the module name of your project). - Setting up VSCode linting intellisense (Optional):
- Go to Go extension in marketplace (install go extension by "Go Team at Google")
- Click on the settings icon
- Click
Extension Settings
- Scroll all the way down and click
Edit settings.json
- Add these two lines:
"go.lintTool": "golangci-lint", "go.lintFlags": [ "--fast"
.husky/pre-commit
hook runs linting with golangci-lint version `v1.46.2` in a docker container as of this writing, but that can be configured to your liking, as well as forked and configured. Ultimately, this pre commit hook golangci-lint version will be the linting version you should be targetting. - Happy coding.
E2E Testing
For running e2e testing in dev-environment, run npm run cypress:open
or npm run cypress:run
.