Run tests:
make test
Run the linter and try to autofix:
make lint
-
Fetch changes to the repo and any new tags. Export
VERSIONby incrementing the last tag. Executeupdate-mod-versionto add it the project'sgo.modfiles:git checkout master && git pull --rebase export VERSION=v0.x.y make update-mod-version git checkout -b $USER-$VERSION
-
Prepare a PR with the changes, updating
CHANGELOG.mdwith any necessary additions at the same time. Include[skip ci]in the commit description so that CI doesn't run and pollute the Go Module cache by trying to fetch a version that's not available yet (and it would fail anyway). Have it reviewed and merged. -
Upon merge, pull down the changes, tag each module with the new version, and push the new tags:
git checkout master && git pull --rebase git tag datadogriver/$VERSION -m "release datadogriver/$VERSION" git tag nilerror/$VERSION -m "release nilerror/$VERSION" git tag otelriver/$VERSION -m "release otelriver/$VERSION" git tag versionedjob/$VERSION -m "release versionedjob/$VERSION" git tag $VERSION
-
Push new tags to GitHub:
git push --tags
-
Cut a new GitHub release by visiting new release, selecting the new tag, and copying in the version's
CHANGELOG.mdcontent as the release body.