From afee6a053b80cd2e317f83f794bb621e83520adc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Thalheim?= Date: Mon, 1 Feb 2021 13:23:17 +0100 Subject: [PATCH] golangci-lint: fix build --- .github/workflows/test.yml | 2 ++ default.nix | 4 +++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index af68354..7715ca8 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -26,6 +26,8 @@ jobs: - name: Add keys group (needed for go tests) run: sudo groupadd keys if: matrix.os == 'ubuntu-latest' + - name: Run lint + run: nix-build --no-out-link default.nix -A lint - name: Build nix packages run: nix-build --no-out-link release.nix - name: Run unit tests diff --git a/default.nix b/default.nix index 7d3ae1c..55963df 100644 --- a/default.nix +++ b/default.nix @@ -34,6 +34,7 @@ in rec { buildPhase = '' HOME=$TMPDIR golangci-lint run ''; + doCheck = false; installPhase = '' touch $out ''; @@ -46,8 +47,9 @@ in rec { buildPhase = '' (cd pkgs/sops-install-secrets && gox -os linux) ''; + doCheck = false; installPhase = '' - touch $out + touch $out $unittest ''; fixupPhase = ":"; });