name: Build and Test

on: [push, pull_request]

jobs:
  build:
    runs-on: ${{ matrix.os }}
    strategy:
      matrix:
        os: [ubuntu-18.04]
        go: [1.13, 1.12]
    steps:
    - uses: actions/checkout@v2
    - uses: actions/setup-go@v2
      with:
        go-version: ${{ matrix.go }}
    - name: Install Dependencies
      run: |
        sudo apt-get install libnl-3-dev libnl-genl-3-dev
    - name: Build
      run: |
        go build ./...
    - name: Test
      run: |
        go test -cover -race ./...

name: Build and Test

on: [push, pull_request]

jobs:
  build:
    runs-on: ${{ matrix.os }}
    strategy:
      matrix:
        os: [ubuntu-18.04]
        go: [1.13, 1.12]
    steps:
    - uses: actions/checkout@v2
    - uses: actions/setup-go@v2
      with:
        go-version: ${{ matrix.go }}
    - name: Install Dependencies
      run: |
        sudo apt-get install libnl-3-dev libnl-genl-3-dev
        PROTOC_VER=3.7.1
        PROTOC_ZIP=protoc-${PROTOC_VER}-linux-x86_64.zip
        curl -LO https://github.com/protocolbuffers/protobuf/releases/download/v${PROTOC_VER}/${PROTOC_ZIP}
        sudo unzip ${PROTOC_ZIP} -d /usr/local
        rm ${PROTOC_ZIP}
    - name: Protobuf
      run: |
        make proto
        git status --porcelain
        git diff --exit-code
    - name: Build
      run: |
        go build ./...
    - name: Test
      run: |
        go test -cover -race ./...

Update CI pipeline to prevent proto drift
Update CI pipeline to prevent proto drift

This is to ensure:
- included config.pb.go always matches config.proto
- pb.go generated with the same toolchain

Otherwise it'll be captured in the CI
