build(deps): bump golangci/golangci-lint-action from 2.5.2 to 3.1.0 (#2627)

Co-authored-by: Sergey Vilgelm <sergey@vilgelm.com>
Co-authored-by: Fernandez Ludovic <ldez@users.noreply.github.com>
This commit is contained in:
dependabot[bot] 2022-03-01 11:57:10 +01:00 committed by GitHub
parent 6fc688ae05
commit 0bcc0a3ba1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 18 additions and 11 deletions

View File

@ -1,11 +1,10 @@
name: Extra
on:
push:
tags:
- v*
branches:
- master
pull_request:
jobs:
vulns:
name: Vulnerability scanner

View File

@ -1,12 +1,13 @@
---
name: CI
on:
push:
tags:
- v*
branches:
- master
pull_request:
env:
GO_VERSION: 1.17
jobs:
# Check if there any dirty change for go mod tidy
go-mod:
@ -15,7 +16,7 @@ jobs:
- name: Install Go
uses: actions/setup-go@v2
with:
go-version: 1.17
go-version: ${{ env.GO_VERSION }}
- name: Checkout code
uses: actions/checkout@v2
- name: Check go mod
@ -29,8 +30,12 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install Go
uses: actions/setup-go@v2
with:
go-version: ${{ env.GO_VERSION }}
- name: lint
uses: golangci/golangci-lint-action@v2.5.2
uses: golangci/golangci-lint-action@v3.1.0
with:
version: latest
# skip cache because of flaky behaviors
@ -45,10 +50,11 @@ jobs:
- name: Install Go
uses: actions/setup-go@v2
with:
go-version: 1.17 # test only the latest go version to speed up CI
go-version: ${{ env.GO_VERSION }} # test only the latest go version to speed up CI
- name: Run tests
run: make.exe test
continue-on-error: true
tests-on-macos:
needs: golangci-lint # run after golangci-lint action to not produce duplicated errors
runs-on: macos-latest
@ -57,9 +63,10 @@ jobs:
- name: Install Go
uses: actions/setup-go@v2
with:
go-version: 1.17 # test only the latest go version to speed up CI
go-version: ${{ env.GO_VERSION }} # test only the latest go version to speed up CI
- name: Run tests
run: make test
tests-on-unix:
needs: golangci-lint # run after golangci-lint action to not produce duplicated errors
runs-on: ubuntu-latest
@ -82,6 +89,7 @@ jobs:
${{ runner.os }}-go-${{ matrix.golang }}-
- name: Run tests
run: make test
check_generated:
needs: golangci-lint # run after golangci-lint action to not produce duplicated errors
runs-on: ubuntu-latest
@ -95,6 +103,6 @@ jobs:
- name: Install Go
uses: actions/setup-go@v2
with:
go-version: 1.17
go-version: ${{ env.GO_VERSION }}
- name: Check generated files are up to date
run: make fast_check_generated

View File

@ -1,9 +1,9 @@
---
name: "Release a tag"
on:
push:
tags:
- v*
jobs:
release:
runs-on: ubuntu-latest