2022-04-07 23:33:47 +01:00
|
|
|
name: Lint
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- master
|
|
|
|
pull_request:
|
|
|
|
branches:
|
|
|
|
- master
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
# From https://github.com/golangci/golangci-lint-action
|
|
|
|
golangci:
|
|
|
|
name: lint
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v3
|
2023-04-02 05:36:32 +01:00
|
|
|
- uses: actions/setup-go@v4
|
2022-04-07 23:33:47 +01:00
|
|
|
with:
|
2023-08-12 11:23:10 +01:00
|
|
|
go-version: '1.21.x'
|
2022-04-07 23:33:47 +01:00
|
|
|
|
|
|
|
- name: golangci-lint
|
|
|
|
uses: golangci/golangci-lint-action@v3
|
|
|
|
with:
|
2023-02-07 11:16:42 +00:00
|
|
|
version: 'latest'
|
2022-04-07 23:33:47 +01:00
|
|
|
# Optional: show only new issues if it's a pull request. The default value is `false`.
|
|
|
|
# only-new-issues: true
|