github.com/aiven/aiven-go-client@v1.36.0/.github/workflows/test.yml (about)

     1  name: Test
     2  
     3  on:
     4    push:
     5      branches:
     6        - main
     7    pull_request:
     8      branches:
     9        - main
    10  
    11  jobs:
    12    test:
    13      if: >
    14        (github.event_name == 'pull_request' && !contains(github.event.pull_request.labels.*.name, 'skip workflows')) ||
    15        github.event_name == 'push'
    16      name: Test
    17      runs-on: ubuntu-latest
    18      steps:
    19        - uses: actions/setup-go@v4
    20          with:
    21            go-version: stable
    22        - uses: actions/checkout@v3
    23          with:
    24            fetch-depth: 0
    25        - run: go build -v .
    26        - run: make test