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:
parent
d665aecd88
commit
afee6a053b
2 changed files with 5 additions and 1 deletions
2
.github/workflows/test.yml
vendored
2
.github/workflows/test.yml
vendored
|
@ -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
|
||||||
|
|
|
@ -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 = ":";
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in a new issue