sigs.k8s.io/external-dns@v0.14.1/.github/workflows/lint.yaml (about)

     1  name: Lint
     2  
     3  on:
     4    push:
     5      branches: [ master ]
     6    pull_request:
     7      branches: [ master ]
     8  
     9  permissions:
    10    contents: read  #  to fetch code (actions/checkout)
    11  
    12  jobs:
    13  
    14    build:
    15      permissions:
    16        contents: read  #  to fetch code (actions/checkout)
    17        checks: write  #  to create a new check based on the results (shogo82148/actions-goveralls)
    18  
    19      name: Build
    20      runs-on: ubuntu-latest
    21      steps:
    22  
    23      - name: Set up Go 1.x
    24        uses: actions/setup-go@v5
    25        with:
    26          go-version: '1.21'
    27        id: go
    28  
    29      - name: Check out code into the Go module directory
    30        uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633 # v4.1.2
    31  
    32      - name: Lint
    33        run: |
    34          curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin v1.55.2
    35          make lint