Use golangci-lint Github Action
Signed-off-by: Maksym Pavlenko <pavlenko.maksym@gmail.com>
This commit is contained in:
parent
8b03df2dae
commit
8b046647e6
22
.github/workflows/ci.yml
vendored
22
.github/workflows/ci.yml
vendored
@ -20,13 +20,13 @@ jobs:
|
||||
|
||||
strategy:
|
||||
matrix:
|
||||
go-version: [1.15.2]
|
||||
os: [ubuntu-18.04, macos-10.15, windows-2019]
|
||||
|
||||
steps:
|
||||
- name: Install Go
|
||||
uses: actions/setup-go@v1
|
||||
- uses: actions/checkout@v2
|
||||
with:
|
||||
go-version: '1.15.2'
|
||||
path: src/github.com/containerd/containerd
|
||||
|
||||
- name: Set env
|
||||
shell: bash
|
||||
@ -34,21 +34,9 @@ jobs:
|
||||
echo "::set-env name=GOPATH::${{ github.workspace }}"
|
||||
echo "::add-path::${{ github.workspace }}/bin"
|
||||
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v2
|
||||
- uses: golangci/golangci-lint-action@v2
|
||||
with:
|
||||
path: src/github.com/containerd/containerd
|
||||
|
||||
- name: Install dev tools
|
||||
env:
|
||||
GO111MODULE: off
|
||||
shell: bash
|
||||
run: script/setup/install-dev-tools
|
||||
working-directory: src/github.com/containerd/containerd
|
||||
|
||||
- name: Make check
|
||||
shell: bash
|
||||
run: make check
|
||||
version: v1.29
|
||||
working-directory: src/github.com/containerd/containerd
|
||||
|
||||
#
|
||||
|
Loading…
Reference in New Issue
Block a user