From e0cb52d2929fb0ef2080bb67cc7128d293b975ac Mon Sep 17 00:00:00 2001 From: Rasmus Dahlberg Date: Thu, 16 May 2024 07:47:15 +0200 Subject: ci: Run go fmt/test/vet --- .gitlab-ci.yml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 .gitlab-ci.yml diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 0000000..c64b172 --- /dev/null +++ b/.gitlab-ci.yml @@ -0,0 +1,16 @@ +image: golang:1.19 + +stages: + - test + +go-fmt: + stage: test + script: test -z $(go fmt ./...) + +go-vet: + stage: test + script: go vet ./... + +go-test: + stage: test + script: go test -race ./... -- cgit v1.2.3