github.com/dylandreimerink/gobpfld@v0.6.1-0.20220205171531-e79c330ad608/.github/workflows/ci.yaml (about)

     1  name: CI
     2  on:
     3    push:
     4      tags:
     5        - "v*"
     6      branches:
     7        - "master"
     8    pull_request:
     9  jobs:
    10    ci:
    11      runs-on: ubuntu-latest
    12      steps:
    13        - name: Install Go
    14          uses: actions/setup-go@v2
    15          with:
    16            go-version: 1.16.x
    17        - name: checkout code
    18          uses: actions/checkout@v2
    19        - name: Run linters
    20          uses: golangci/golangci-lint-action@v2
    21          with:
    22            version: v1.40.1
    23        - name: Run Unit tests
    24          run: go test ./...
    25        - name: Check go mod tidyness
    26          run: ./tools/check-go-mod.sh