mirror of
https://github.com/Mic92/sops-nix.git
synced 2025-03-05 16:17:47 +00:00
tests: add golangci-lint
This commit is contained in:
parent
fd28d45f10
commit
0f17dbc4bb
2 changed files with 4 additions and 0 deletions
3
.github/workflows/test.yml
vendored
3
.github/workflows/test.yml
vendored
|
@ -24,6 +24,9 @@ jobs:
|
||||||
signingKey: '${{ secrets.CACHIX_SIGNING_KEY }}'
|
signingKey: '${{ secrets.CACHIX_SIGNING_KEY }}'
|
||||||
- name: Show nixpkgs version
|
- name: Show nixpkgs version
|
||||||
run: nix-instantiate --eval -E '(import <nixpkgs> {}).lib.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
|
- name: Build nix packages
|
||||||
run: nix run nixpkgs.nix-build-uncached -c nix-build-uncached default.nix
|
run: nix run nixpkgs.nix-build-uncached -c nix-build-uncached default.nix
|
||||||
- name: Add keys group (needed for go tests)
|
- name: Add keys group (needed for go tests)
|
||||||
|
|
|
@ -7,6 +7,7 @@ pkgs.mkShell {
|
||||||
gnupg
|
gnupg
|
||||||
utillinux
|
utillinux
|
||||||
nix
|
nix
|
||||||
|
golangci-lint
|
||||||
];
|
];
|
||||||
# delve does not compile with hardening enabled
|
# delve does not compile with hardening enabled
|
||||||
hardeningDisable = [ "all" ];
|
hardeningDisable = [ "all" ];
|
||||||
|
|
Loading…
Add table
Reference in a new issue