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:
|
2023-10-02 00:35:26 +01:00
|
|
|
- uses: actions/checkout@v4
|
2024-01-02 07:15:55 +00:00
|
|
|
- uses: actions/setup-go@v5
|
2022-04-07 23:33:47 +01:00
|
|
|
with:
|
2024-02-16 00:00:03 +00:00
|
|
|
go-version: '1.22.x'
|
2022-04-07 23:33:47 +01:00
|
|
|
|
|
|
|
- name: golangci-lint
|
2024-06-01 23:21:57 +01:00
|
|
|
uses: golangci/golangci-lint-action@v6
|
2022-04-07 23:33:47 +01:00
|
|
|
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
|