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:
parent
6fc688ae05
commit
0bcc0a3ba1
3
.github/workflows/pr-extra.yml
vendored
3
.github/workflows/pr-extra.yml
vendored
@ -1,11 +1,10 @@
|
|||||||
name: Extra
|
name: Extra
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
tags:
|
|
||||||
- v*
|
|
||||||
branches:
|
branches:
|
||||||
- master
|
- master
|
||||||
pull_request:
|
pull_request:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
vulns:
|
vulns:
|
||||||
name: Vulnerability scanner
|
name: Vulnerability scanner
|
||||||
|
24
.github/workflows/pr.yml
vendored
24
.github/workflows/pr.yml
vendored
@ -1,12 +1,13 @@
|
|||||||
---
|
|
||||||
name: CI
|
name: CI
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
tags:
|
|
||||||
- v*
|
|
||||||
branches:
|
branches:
|
||||||
- master
|
- master
|
||||||
pull_request:
|
pull_request:
|
||||||
|
|
||||||
|
env:
|
||||||
|
GO_VERSION: 1.17
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
# Check if there any dirty change for go mod tidy
|
# Check if there any dirty change for go mod tidy
|
||||||
go-mod:
|
go-mod:
|
||||||
@ -15,7 +16,7 @@ jobs:
|
|||||||
- name: Install Go
|
- name: Install Go
|
||||||
uses: actions/setup-go@v2
|
uses: actions/setup-go@v2
|
||||||
with:
|
with:
|
||||||
go-version: 1.17
|
go-version: ${{ env.GO_VERSION }}
|
||||||
- name: Checkout code
|
- name: Checkout code
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
- name: Check go mod
|
- name: Check go mod
|
||||||
@ -29,8 +30,12 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
|
- name: Install Go
|
||||||
|
uses: actions/setup-go@v2
|
||||||
|
with:
|
||||||
|
go-version: ${{ env.GO_VERSION }}
|
||||||
- name: lint
|
- name: lint
|
||||||
uses: golangci/golangci-lint-action@v2.5.2
|
uses: golangci/golangci-lint-action@v3.1.0
|
||||||
with:
|
with:
|
||||||
version: latest
|
version: latest
|
||||||
# skip cache because of flaky behaviors
|
# skip cache because of flaky behaviors
|
||||||
@ -45,10 +50,11 @@ jobs:
|
|||||||
- name: Install Go
|
- name: Install Go
|
||||||
uses: actions/setup-go@v2
|
uses: actions/setup-go@v2
|
||||||
with:
|
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
|
- name: Run tests
|
||||||
run: make.exe test
|
run: make.exe test
|
||||||
continue-on-error: true
|
continue-on-error: true
|
||||||
|
|
||||||
tests-on-macos:
|
tests-on-macos:
|
||||||
needs: golangci-lint # run after golangci-lint action to not produce duplicated errors
|
needs: golangci-lint # run after golangci-lint action to not produce duplicated errors
|
||||||
runs-on: macos-latest
|
runs-on: macos-latest
|
||||||
@ -57,9 +63,10 @@ jobs:
|
|||||||
- name: Install Go
|
- name: Install Go
|
||||||
uses: actions/setup-go@v2
|
uses: actions/setup-go@v2
|
||||||
with:
|
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
|
- name: Run tests
|
||||||
run: make test
|
run: make test
|
||||||
|
|
||||||
tests-on-unix:
|
tests-on-unix:
|
||||||
needs: golangci-lint # run after golangci-lint action to not produce duplicated errors
|
needs: golangci-lint # run after golangci-lint action to not produce duplicated errors
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
@ -82,6 +89,7 @@ jobs:
|
|||||||
${{ runner.os }}-go-${{ matrix.golang }}-
|
${{ runner.os }}-go-${{ matrix.golang }}-
|
||||||
- name: Run tests
|
- name: Run tests
|
||||||
run: make test
|
run: make test
|
||||||
|
|
||||||
check_generated:
|
check_generated:
|
||||||
needs: golangci-lint # run after golangci-lint action to not produce duplicated errors
|
needs: golangci-lint # run after golangci-lint action to not produce duplicated errors
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
@ -95,6 +103,6 @@ jobs:
|
|||||||
- name: Install Go
|
- name: Install Go
|
||||||
uses: actions/setup-go@v2
|
uses: actions/setup-go@v2
|
||||||
with:
|
with:
|
||||||
go-version: 1.17
|
go-version: ${{ env.GO_VERSION }}
|
||||||
- name: Check generated files are up to date
|
- name: Check generated files are up to date
|
||||||
run: make fast_check_generated
|
run: make fast_check_generated
|
||||||
|
2
.github/workflows/tag.yml
vendored
2
.github/workflows/tag.yml
vendored
@ -1,9 +1,9 @@
|
|||||||
---
|
|
||||||
name: "Release a tag"
|
name: "Release a tag"
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
tags:
|
tags:
|
||||||
- v*
|
- v*
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
release:
|
release:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
Loading…
x
Reference in New Issue
Block a user