Use golangci-lint Github Action
@@ -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
#
