From 8b046647e63ad74c58ffab693ed752c834fcf795 Mon Sep 17 00:00:00 2001 From: Maksym Pavlenko Date: Wed, 7 Oct 2020 15:17:56 -0700 Subject: [PATCH] Use golangci-lint Github Action Signed-off-by: Maksym Pavlenko --- .github/workflows/ci.yml | 24 ++++++------------------ 1 file changed, 6 insertions(+), 18 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index f5c4c6ddd..a37bf4b1c 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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