1
0
Fork 0
mirror of https://github.com/Mic92/sops-nix.git synced 2024-12-14 11:57:52 +00:00

golangci-lint: fix build

This commit is contained in:
Jörg Thalheim 2021-02-01 13:23:17 +01:00
parent d665aecd88
commit afee6a053b
No known key found for this signature in database
GPG key ID: B3F5D81B0C6967C4
2 changed files with 5 additions and 1 deletions

View file

@ -26,6 +26,8 @@ jobs:
- name: Add keys group (needed for go tests) - name: Add keys group (needed for go tests)
run: sudo groupadd keys run: sudo groupadd keys
if: matrix.os == 'ubuntu-latest' if: matrix.os == 'ubuntu-latest'
- name: Run lint
run: nix-build --no-out-link default.nix -A lint
- name: Build nix packages - name: Build nix packages
run: nix-build --no-out-link release.nix run: nix-build --no-out-link release.nix
- name: Run unit tests - name: Run unit tests

View file

@ -34,6 +34,7 @@ in rec {
buildPhase = '' buildPhase = ''
HOME=$TMPDIR golangci-lint run HOME=$TMPDIR golangci-lint run
''; '';
doCheck = false;
installPhase = '' installPhase = ''
touch $out touch $out
''; '';
@ -46,8 +47,9 @@ in rec {
buildPhase = '' buildPhase = ''
(cd pkgs/sops-install-secrets && gox -os linux) (cd pkgs/sops-install-secrets && gox -os linux)
''; '';
doCheck = false;
installPhase = '' installPhase = ''
touch $out touch $out $unittest
''; '';
fixupPhase = ":"; fixupPhase = ":";
}); });