forked from mirrors/gomod2nix
github actions: Add golangci-lint
This commit is contained in:
parent
ea6b999c69
commit
f49e99e02f
1 changed files with 10 additions and 0 deletions
10
.github/workflows/ci.yml
vendored
10
.github/workflows/ci.yml
vendored
|
@ -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:
|
||||||
|
|
Loading…
Reference in a new issue