github.com/operator-framework/operator-lifecycle-manager@v0.30.0/.github/workflows/sanity.yaml (about)

     1  name: sanity
     2  on:
     3    push:
     4      branches:
     5        - '**'
     6    pull_request:
     7    workflow_dispatch:
     8    merge_group:
     9  jobs:
    10    check-vendor:
    11      runs-on: ubuntu-latest
    12      steps:
    13      - uses: actions/checkout@v4
    14      - uses: actions/setup-go@v5
    15        with:
    16          go-version-file: "go.mod"
    17      - name: Verify vendor directory
    18        run: make vendor && make diff
    19    static-analysis:
    20      runs-on: ubuntu-latest
    21      steps:
    22      - uses: actions/checkout@v4
    23      - uses: actions/setup-go@v5
    24        with:
    25          go-version-file: "go.mod"
    26      - name: Run static analysis tools
    27        run: make lint vet
    28    verify:
    29      runs-on: ubuntu-latest
    30      steps:
    31        - uses: actions/checkout@v4
    32        - uses: actions/setup-go@v5
    33          with:
    34            go-version-file: "go.mod"
    35        - name: Verify generated code (mocks, clients, listers, etc.)
    36          run: make verify