github.com/sagernet/sing-box@v1.9.0-rc.20/.github/workflows/lint.yml (about)

     1  name: Lint
     2  
     3  on:
     4    push:
     5      branches:
     6        - stable-next
     7        - main-next
     8        - dev-next
     9      paths-ignore:
    10        - '**.md'
    11        - '.github/**'
    12        - '!.github/workflows/lint.yml'
    13    pull_request:
    14      branches:
    15        - stable-next
    16        - main-next
    17        - dev-next
    18  
    19  jobs:
    20    build:
    21      name: Build
    22      runs-on: ubuntu-latest
    23      steps:
    24        - name: Checkout
    25          uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4
    26          with:
    27            fetch-depth: 0
    28        - name: Setup Go
    29          uses: actions/setup-go@v5
    30          with:
    31            go-version: ^1.22
    32        - name: golangci-lint
    33          uses: golangci/golangci-lint-action@v6
    34          with:
    35            version: latest
    36            args: --timeout=30m
    37            install-mode: binary