github.com/digitalocean/go-netbox@v0.0.2/.github/workflows/main.yml (about)

     1  ---
     2  name: main
     3  
     4  on:
     5    push:
     6      branches:
     7        - master
     8    pull_request:
     9  
    10  jobs:
    11    build:
    12      runs-on: ubuntu-latest
    13      strategy:
    14        fail-fast: false
    15        matrix:
    16          go: ["1.15.x", "1.16.x", "1.17.x"]
    17      steps:
    18        - name: Checkout
    19          uses: actions/checkout@v2
    20  
    21        - name: License check
    22          run: ./scripts/licensecheck.sh
    23  
    24        - name: Go installation
    25          uses: actions/setup-go@v2
    26          with:
    27            go-version: ${{ matrix.go }}
    28  
    29        - name: Go dependencies installation
    30          run: go get -d ./...
    31  
    32        - name: Golint installation
    33          run: go get -u golang.org/x/lint/golint
    34  
    35        - name: Build
    36          run: go build ./...
    37  
    38        - name: Lint
    39          run: ./scripts/golint.sh
    40  
    41        - name: Vet
    42          run: go vet ./...
    43  
    44        - name: Test
    45          run: go test -v ./...