1
0
Fork 0
mirror of https://github.com/Mic92/sops-nix.git synced 2025-03-05 08:07:16 +00:00

tests: add golangci-lint

This commit is contained in:
Jörg Thalheim 2020-07-19 23:34:01 +01:00
parent fd28d45f10
commit 0f17dbc4bb
No known key found for this signature in database
GPG key ID: 003F2096411B5F92
2 changed files with 4 additions and 0 deletions

View file

@ -24,6 +24,9 @@ jobs:
signingKey: '${{ secrets.CACHIX_SIGNING_KEY }}'
- name: Show nixpkgs version
run: nix-instantiate --eval -E '(import <nixpkgs> {}).lib.version'
- name: Run golangci-lint
run: nix-shell --pure --run "golangci-lint run"
if: matrix.nixPath == 'nixpkgs=channel:nixpkgs-unstable'
- name: Build nix packages
run: nix run nixpkgs.nix-build-uncached -c nix-build-uncached default.nix
- name: Add keys group (needed for go tests)

View file

@ -7,6 +7,7 @@ pkgs.mkShell {
gnupg
utillinux
nix
golangci-lint
];
# delve does not compile with hardening enabled
hardeningDisable = [ "all" ];