Merge pull request #132 from google/dependabot/go_modules/golang.org/… #120
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build and Test | |
on: [push, pull_request] | |
jobs: | |
build: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [ubuntu-18.04] | |
go: [1.19, 1.18] | |
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 ./... |