github.com/NVIDIA/aistore@v1.3.23-0.20240517131212-7df6609be51d/.github/workflows/lint.yml (about)

     1  name: lint (on linux)
     2  on:
     3    push:
     4      branches:
     5        - main
     6    pull_request:
     7      types: [opened, synchronize, reopened, labeled, ready_for_review]
     8      branches:
     9        - main
    10    workflow_dispatch:
    11  
    12  jobs:
    13    build:
    14      strategy:
    15        matrix:
    16          go-version: ['1.22.x']
    17          os: [ubuntu-latest]
    18      runs-on: ${{ matrix.os }}
    19      steps:
    20        - name: Install Go
    21          uses: actions/setup-go@v4
    22          with:
    23            go-version: ${{ matrix.go-version }}
    24  
    25        - name: Checkout code
    26          uses: actions/checkout@v4
    27  
    28        - name: golangci-lint
    29          uses: golangci/golangci-lint-action@v3
    30          with:
    31            version: v1.58.1 ### NOTE: see also: Makefile lint-update-ci
    32            args: --timeout=30m
    33        - name: Lint linux
    34          run: |
    35            export GOPATH="$(go env GOPATH)"
    36            make lint
    37            make fmt-check
    38            make spell-check