github.com/vmware/govmomi@v0.51.0/.github/workflows/govmomi-go-lint.yaml (about)

     1  name: Code Style
     2  
     3  permissions:
     4    contents: read
     5  
     6  on:
     7    push:
     8      branches: main
     9    pull_request:
    10      branches: main
    11  
    12  jobs:
    13    lint:
    14      name: Lint Files
    15      runs-on: ubuntu-latest
    16      timeout-minutes: 10
    17  
    18      steps:
    19        - name: Check Repository
    20          uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
    21  
    22        - name: Setup Go
    23          uses: actions/setup-go@d35c59abb061a4a6fb18e82ac0862c26744d6ab5 # v5.5.0
    24          with:
    25            go-version-file: go.mod
    26          id: go
    27  
    28        - name: Go Lint
    29          run: make lint
    30  
    31    header:
    32      name: Header Check
    33      runs-on: ubuntu-latest
    34      steps:
    35        - name: Check Repository
    36          uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
    37  
    38        - name: Setup Go
    39          uses: actions/setup-go@d35c59abb061a4a6fb18e82ac0862c26744d6ab5 # v5.5.0
    40          with:
    41            go-version-file: go.mod
    42          id: go
    43  
    44        - name: Run Header Check
    45          run: go run hack/header/main.go -config="hack/header/config.json"