ci: add initial config for gitlab CI

Just checks linting, and build/test.
This commit is contained in:
Clayton Craft
2021-08-10 19:02:37 -07:00
parent 206020c3f1
commit 49cf99f4d9
2 changed files with 54 additions and 0 deletions

11
.gitlab-ci/check_gofmt.sh Executable file
View File

@@ -0,0 +1,11 @@
#!/bin/sh
files="$(gofmt -l .)"
[ -z "$files" ] && exit 0
# run gofmt to print out the diff of what needs to be changed
gofmt -d -e .
exit 1