2021-07-14 15:36:18 +02:00
|
|
|
name: golangci-lint
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
2021-09-30 21:09:38 +02:00
|
|
|
branches: [ main, release-** ]
|
2021-07-14 15:36:18 +02:00
|
|
|
pull_request:
|
2021-10-01 16:24:21 +02:00
|
|
|
branches: [ main, release-** ]
|
2022-04-20 03:18:47 +02:00
|
|
|
workflow_dispatch:
|
2021-07-14 15:36:18 +02:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
golangci:
|
2022-04-20 03:18:47 +02:00
|
|
|
name: plugin
|
2021-07-14 15:36:18 +02:00
|
|
|
runs-on: ubuntu-18.04
|
|
|
|
steps:
|
2022-04-20 03:18:47 +02:00
|
|
|
- uses: actions/setup-go@v3
|
2021-07-14 15:36:18 +02:00
|
|
|
with:
|
2022-04-20 03:18:47 +02:00
|
|
|
go-version: 1.18.1
|
|
|
|
- uses: actions/checkout@v3
|
|
|
|
- name: set up golangci-lint
|
|
|
|
run: curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin v1.45.2
|
|
|
|
- name: lint
|
|
|
|
run: make server-lint
|