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

     1  name: unit
     2  on:
     3    push:
     4      branches:
     5        - master
     6    pull_request:
     7    workflow_dispatch:
     8    merge_group:
     9    issue_comment:
    10      types: [created]  # Triggers the workflow when a comment is created. see `if` section
    11  jobs:
    12    unit:
    13      if: >-
    14        github.event_name != 'issue_comment' || startsWith(github.event.comment.body, '/retest unit')
    15      runs-on: ubuntu-latest
    16      steps:
    17        - uses: actions/checkout@v4
    18        - uses: actions/setup-go@v5
    19          with:
    20            go-version-file: "go.mod"
    21        - name: Run unit tests
    22          run: make unit