ref: 8a516e9e064619dcb3d84499b66e1562546be918 xmpp/.builds/ci.yml -rw-r--r-- 1.3 KiB
.builds: validate license headers

Validate that all files have the correct license header so that it
doesn't accidentally get left off of new files or get broken by a stray
Vim shortcut and then not noticed until after it has been merged.

Fixes #40

Signed-off-by: Sam Whited <sam@samwhited.com>
.builds: validate URLs in docs

Ensures that all links in the documentation point to valid full URLs
because relative links may break depending on whether we're viewing the
docs on Sourcehut or GitHub.

Fixes #41

Signed-off-by: Sam Whited <sam@samwhited.com>
.builds: validate example go.mod files

For each example ensure that go mod tidy has been run like we do for the
main go.mod file.

Fixes #39

Signed-off-by: Sam Whited <sam@samwhited.com>
.builds: default to SourceHut repo for CI

See #51

Signed-off-by: Sam Whited <sam@samwhited.com>
.builds: revert back to using FreeBSD for CI

This reverts commit 4630c5058e9a4abbbd0c120bdb7daa23fd736dd4.

Signed-off-by: Sam Whited <sam@samwhited.com>
.builds: change CI to use OpenBSD temporarily

The FreeBSD image on SourceHut is broken and they have indicated that
they intend to wait for FreeBSD to issue a release instead of working
around the issue themselves. For now, change the builder to OpenBSD.

Signed-off-by: Sam Whited <sam@samwhited.com>
.builds: add DCO check

Using a developer certificate of origin gives us a simple way to ask
people to assert that they have the rights to submit their code without
requiring cumbersome CLAs.

Signed-off-by: Sam Whited <sam@samwhited.com>
.builds: error if golint fails

Signed-off-by: Sam Whited <sam@samwhited.com>
.builds: validate docs and import comments

Signed-off-by: Sam Whited <sam@samwhited.com>
.builds: fix GitHub integration

Apparently having .git at the end of the URL breaks dispatch.sr.ht, per
.builds: validate that `go mod tidy' has been run
.builds: perform expensive steps last
.builds: test against stable and tip
.builds: go back to the old way of running tools

The go.mod file keeps having its dependencies removed, or having xmpp
added as a dependency for some reason. Until modules are better
understood or less buggy, and until gosec and golint have tags, just
keep doing them last and modifying the main go.mod file.
.builds: run gosec during linting phase
.builds: build examples in CI
Revert ".builds: fix directory in CI scripts"

This reverts commit b289c418209bc24030ff282e01225c94b2319156.
.builds: fix directory in CI scripts
.builds: don't fail on linting issues
.builds: use correct build tree name