bbgo_origin/.github/workflows/golang-lint.yml

26 lines
460 B
YAML
Raw Normal View History

name: golang-lint
on:
push:
branches: [ main ]
pull_request:
2024-04-08 09:21:42 +00:00
permissions:
contents: read
2024-04-08 09:21:42 +00:00
pull-requests: read
checks: write
jobs:
golangci:
name: lint
runs-on: ubuntu-latest
steps:
2024-04-08 09:21:42 +00:00
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
2024-04-08 09:21:42 +00:00
go-version: '1.21'
cache: false
- name: golangci-lint
uses: golangci/golangci-lint-action@v6
with:
2024-04-08 09:21:42 +00:00
version: 'v1.54'