From 6190e2bd7214a51b7e5cb05654a79b887fe0c8ce Mon Sep 17 00:00:00 2001 From: Denis Kirillov Date: Fri, 30 Sep 2022 16:41:24 +0300 Subject: [PATCH] [#209] Add check dirty version to CI Signed-off-by: Denis Kirillov --- .github/workflows/builds.yml | 3 +++ go.mod | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/builds.yml b/.github/workflows/builds.yml index d1f6b16..e1ed2b8 100644 --- a/.github/workflows/builds.yml +++ b/.github/workflows/builds.yml @@ -35,6 +35,9 @@ jobs: - name: Build CLI run: make + - name: Check version + run: if [[ $(make version) == *"dirty"* ]]; then exit 1; fi + build_image: needs: build_cli name: Build Docker image diff --git a/go.mod b/go.mod index 48814d4..ac501eb 100644 --- a/go.mod +++ b/go.mod @@ -13,6 +13,7 @@ require ( github.com/stretchr/testify v1.7.0 github.com/testcontainers/testcontainers-go v0.13.0 github.com/valyala/fasthttp v1.34.0 + go.uber.org/atomic v1.9.0 go.uber.org/zap v1.18.1 ) @@ -81,7 +82,6 @@ require ( github.com/urfave/cli v1.22.5 // indirect github.com/valyala/bytebufferpool v1.0.0 // indirect go.opencensus.io v0.23.0 // indirect - go.uber.org/atomic v1.9.0 // indirect go.uber.org/multierr v1.7.0 // indirect golang.org/x/crypto v0.0.0-20220214200702-86341886e292 // indirect golang.org/x/net v0.0.0-20220412020605-290c469a71a5 // indirect