|
@@ -7,9 +7,11 @@ on:
|
|
- 'release/**'
|
|
- 'release/**'
|
|
paths:
|
|
paths:
|
|
- '**.go'
|
|
- '**.go'
|
|
|
|
+ - '.golangci.yml'
|
|
pull_request:
|
|
pull_request:
|
|
paths:
|
|
paths:
|
|
- '**.go'
|
|
- '**.go'
|
|
|
|
+ - '.golangci.yml'
|
|
env:
|
|
env:
|
|
GOPROXY: "https://proxy.golang.org"
|
|
GOPROXY: "https://proxy.golang.org"
|
|
|
|
|
|
@@ -20,20 +22,22 @@ jobs:
|
|
steps:
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- uses: actions/checkout@v2
|
|
- name: Run golangci-lint
|
|
- name: Run golangci-lint
|
|
- uses: actions-contrib/golangci-lint@v1
|
|
|
|
|
|
+ uses: golangci/golangci-lint-action@v2
|
|
with:
|
|
with:
|
|
- args: 'run --timeout=30m'
|
|
|
|
|
|
+ version: latest
|
|
|
|
+ args: --timeout=30m
|
|
|
|
+ continue-on-error: true
|
|
|
|
|
|
test:
|
|
test:
|
|
name: Test
|
|
name: Test
|
|
strategy:
|
|
strategy:
|
|
matrix:
|
|
matrix:
|
|
- go-version: [1.14.x, 1.15.x]
|
|
|
|
|
|
+ go-version: [1.14.x, 1.15.x, 1.16.x]
|
|
platform: [ubuntu-latest, macos-latest, windows-latest]
|
|
platform: [ubuntu-latest, macos-latest, windows-latest]
|
|
runs-on: ${{ matrix.platform }}
|
|
runs-on: ${{ matrix.platform }}
|
|
steps:
|
|
steps:
|
|
- name: Install Go
|
|
- name: Install Go
|
|
- uses: actions/setup-go@v1
|
|
|
|
|
|
+ uses: actions/setup-go@v2
|
|
with:
|
|
with:
|
|
go-version: ${{ matrix.go-version }}
|
|
go-version: ${{ matrix.go-version }}
|
|
- name: Checkout code
|
|
- name: Checkout code
|