Update CI pipeline

Do not use strict golint while neofs-api-go is under
development after v2.0.0 api release. Use golang-ci
for new issues as alternative.

With v2.0.0 support we support go v1.14+, therefore
it closes #35
This commit is contained in:
Alex Vanin 2020-09-21 17:15:17 +03:00 committed by Stanislav Bogatyrev
parent 78079bea04
commit 8e0ddc5579

View file

@ -3,13 +3,11 @@ on:
push: push:
branches: branches:
- master - master
- develop
paths-ignore: paths-ignore:
- '*.md' - '*.md'
pull_request: pull_request:
branches: branches:
- master - master
- develop
paths-ignore: paths-ignore:
- '*.md' - '*.md'
jobs: jobs:
@ -19,7 +17,7 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
strategy: strategy:
matrix: matrix:
go: [ '1.12.x', '1.13.x', '1.14.x'] go: [ '1.14.x', '1.15.x' ]
steps: steps:
- name: Setup go - name: Setup go
@ -48,12 +46,8 @@ jobs:
- name: Get dependencies - name: Get dependencies
run: | run: |
go get -u -v golang.org/x/lint/golint
go mod tidy -v go mod tidy -v
- name: Linter
run: golint -set_exit_status ./...
- name: Tests - name: Tests
run: go test -coverprofile=coverage.txt -covermode=atomic ./... run: go test -coverprofile=coverage.txt -covermode=atomic ./...
@ -61,3 +55,16 @@ jobs:
env: env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
run: bash <(curl -s https://codecov.io/bash) run: bash <(curl -s https://codecov.io/bash)
golangci:
name: lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: golangci-lint
uses: golangci/golangci-lint-action@v2
with:
version: v1.29
only-new-issues: true