bbgo_origin/.github/workflows/golang-lint.yml
2024-04-08 19:00:04 +08:00

26 lines
460 B
YAML

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