this repo has no description
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

build: move test outside of Nix

Need a bit more freedom than the sandbox for now, may revisit later.

Khue Doan 529247e3 17826860

+1 -40
+1 -1
Makefile
··· 15 15 --debug 16 16 17 17 test: 18 - nix flake check 18 + go test -v ./... 19 19 20 20 fmt: 21 21 go fmt ./...
-39
flake.nix
··· 32 32 modules = ./gomod2nix.toml; 33 33 }; 34 34 35 - go-test = pkgs.stdenvNoCC.mkDerivation { 36 - name = "go-test"; 37 - src = ./.; 38 - dontBuild = true; 39 - doCheck = true; 40 - nativeBuildInputs = with pkgs; [ 41 - go 42 - writableTmpDirAsHomeHook 43 - ]; 44 - checkPhase = '' 45 - go test -v ./... 46 - ''; 47 - installPhase = '' 48 - mkdir "$out" 49 - ''; 50 - }; 51 - 52 - go-lint = pkgs.stdenvNoCC.mkDerivation { 53 - name = "go-lint"; 54 - src = ./.; 55 - dontBuild = true; 56 - doCheck = true; 57 - nativeBuildInputs = with pkgs; [ 58 - golangci-lint 59 - go 60 - writableTmpDirAsHomeHook 61 - ]; 62 - checkPhase = '' 63 - golangci-lint run 64 - ''; 65 - installPhase = '' 66 - mkdir "$out" 67 - ''; 68 - }; 69 - 70 35 goEnv = pkgs.mkGoEnv { pwd = ./.; }; 71 36 in 72 37 { 73 38 packages.${system}.default = app; 74 - 75 - checks.${system} = { 76 - inherit go-test go-lint; 77 - }; 78 39 79 40 devShells.${system}.default = pkgs.mkShell { 80 41 packages = [