2021-01-11 22:31:09 +07:00
|
|
|
name: golangci-lint
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
tags:
|
|
|
|
- v*
|
|
|
|
branches:
|
2024-12-15 18:00:37 +07:00
|
|
|
- main
|
2021-01-11 22:31:09 +07:00
|
|
|
- master
|
|
|
|
pull_request:
|
2024-12-15 18:00:37 +07:00
|
|
|
|
|
|
|
permissions:
|
|
|
|
contents: read
|
|
|
|
# Optional: allow read access to pull request. Use with `only-new-issues` option.
|
|
|
|
# pull-requests: read
|
|
|
|
|
2021-01-11 22:31:09 +07:00
|
|
|
jobs:
|
|
|
|
golangci:
|
2024-12-15 18:00:37 +07:00
|
|
|
name: lint
|
2021-01-11 22:31:09 +07:00
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
2024-12-15 18:00:37 +07:00
|
|
|
- uses: actions/checkout@v4
|
|
|
|
- uses: actions/setup-go@v5
|
2022-08-10 19:17:11 +07:00
|
|
|
with:
|
2024-12-15 18:00:37 +07:00
|
|
|
go-version: stable
|
|
|
|
- name: golangci-lint
|
|
|
|
uses: golangci/golangci-lint-action@v6
|
2021-01-11 22:31:09 +07:00
|
|
|
with:
|
2024-12-15 18:00:37 +07:00
|
|
|
version: v1.60
|
2024-12-15 18:19:23 +07:00
|
|
|
args: --timeout=10m
|