~samwhited/xmpp

xmpp/.builds d---------
.builds: ignore buggy gosec warning

Currently gosec is throwing warnings for any defer statement that closes
a file (even if the error is handled) due to a bug.
Once securego/gosec#714 is fixed and a release has been made this patch
can be reverted.

Signed-off-by: Sam Whited <sam@samwhited.com>
.builds: update install method for tools

The go get command used to be for installing tools as well as fetching
dependencies, but recently this has been changed and it is now only for
fetching dependencies. Use go install fo rall commands for future
compatibility.

Signed-off-by: Sam Whited <sam@samwhited.com>
.builds: re-enable ejabberd integration tests

Signed-off-by: Sam Whited <sam@samwhited.com>
.builds: mirror to Codeberg

Signed-off-by: Sam Whited <sam@samwhited.com>
.builds: use the main branch of checkdoc

Go modules is absolutely convinced that the latest version should be the
old "master" branch even though it's deleted unless we explicitly use
@main.

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

Previously we were checking the committer which will be different if CI
is cherry picking the patch over or a different author is committing the
patch set.

Signed-off-by: Sam Whited <sam@samwhited.com>
.builds: don't run gosec on examples

Signed-off-by: Sam Whited <sam@samwhited.com>
all: update main branch references in links and CI

Signed-off-by: Sam Whited <sam@samwhited.com>
.builds: use gosec v2

Signed-off-by: Sam Whited <sam@samwhited.com>
.builds: use correct staticcheck path

Signed-off-by: Sam Whited <sam@samwhited.com>
.builds: run staticcheck

Now that golint is deprecated, switch to running
honnef.co/go/tools/staticcheck.

Signed-off-by: Sam Whited <sam@samwhited.com>
.builds: validate CONTRIBUTORS file

Signed-off-by: Sam Whited <sam@samwhited.com>
.builds: use Arch Linux for integration tests

As comfortable as I am with FreeBSD its version of sendxmpp(1) appears
to be broken (complains about being unable to compile a Perl file) and
I've had numerous issues with Ejabberd on it.

Signed-off-by: Sam Whited <sam@samwhited.com>
.builds: add sendxmpp/mcabber to integration tests

Signed-off-by: Sam Whited <sam@samwhited.com>
.builds: disable ejabberd integration tests

This temporarily skips all ejabberd integration tests since they fail on
the build VM due to an issue where the server does not shut down
entirely. Until we can figure it out, skip all ejabberd tests.

See #68

Signed-off-by: Sam Whited <sam@samwhited.com>
.builds: re-enable module mode

I thought this had been set as the default, but apparently not.

Signed-off-by: Sam Whited <sam@samwhited.com>
.builds: merge DCO check into validation build

Sourcehut apparently has a limit of 4 parallel builds submitted at once,
so merge the DCO and validation builds.

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

Signed-off-by: Sam Whited <sam@samwhited.com>
.builds: split testing and validation builds

The validation steps don't depend on the testing steps and I sometimes
don't want to wait for the long setup installing static analysis tools
before getting test results or wait for tests to run to get validation
results so run these in parallel.

Signed-off-by: Sam Whited <sam@samwhited.com>
.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>
Next