From f49e99e02fb3589c849f7691e47e7e6ad0d565b6 Mon Sep 17 00:00:00 2001 From: adisbladis Date: Mon, 30 May 2022 18:37:33 +0800 Subject: [PATCH] github actions: Add golangci-lint --- .github/workflows/ci.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index e511524..4236ff3 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -19,6 +19,16 @@ jobs: - name: Check format run: nix-shell --run 'nixpkgs-fmt --check .' + golangci-lint: + runs-on: ubuntu-latest + env: + NIX_PATH: "nixpkgs=https://github.com/NixOS/nixpkgs/archive/nixos-unstable.tar.gz" + steps: + - uses: cachix/install-nix-action@v12 + - uses: actions/checkout@v1 + - name: Check format + run: nix-shell --run 'golangci-lint run' + gomod2nix_toml: runs-on: ubuntu-latest env: