github actions: Add golangci-lint

This commit is contained in:
adisbladis 2022-05-30 18:37:33 +08:00
parent ea6b999c69
commit f49e99e02f

View file

@ -19,6 +19,16 @@ jobs:
- name: Check format - name: Check format
run: nix-shell --run 'nixpkgs-fmt --check .' 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: gomod2nix_toml:
runs-on: ubuntu-latest runs-on: ubuntu-latest
env: env: