Use golangci-lint Github Action

Signed-off-by: Maksym Pavlenko <pavlenko.maksym@gmail.com>
This commit is contained in:
Maksym Pavlenko 2020-10-07 15:17:56 -07:00
parent 8b03df2dae
commit 8b046647e6

View File

@ -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,22 +34,10 @@ 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
working-directory: src/github.com/containerd/containerd
version: v1.29
working-directory: src/github.com/containerd/containerd
#
# Project checks