This project contains a Go library with utility functions.
make test # Run all tests
make verify # Run source verificationTo use it, run the command export GOPRIVATE=gitlab.cee.redhat.com in the terminal,
and then import the github.com/openshift-online/ocm-service-common package.
Use the Makefile release target to create and push a new version tag:
git checkout master
git pull
make release VERSION=v0.1.39The make release target will:
- Validate that you're on the
masterbranch - Check that the version follows semantic versioning format (vX.Y.Z)
- Ensure the new version is higher than the latest existing tag
- Create an annotated tag with a proper release message
- Push the tag to the
upstreamremote
Note that a repository administrator may need to push the tag to the repository due to access restrictions.
export GOPRIVATE=gitlab.cee.redhat.com
go get github.com/openshift-online/ocm-service-commonmake test # Run all tests
make test-unit # Run unit tests only
make verify # Run source verification- Fork this repository
- Create a feature branch from
master - Make your changes
- Run
make testandmake verify - Submit a pull request