dns/.github/workflows/go.yml

44 lines
741 B
YAML

name: Go
on: [push, pull_request]
jobs:
build:
name: Build and Test
runs-on: ubuntu-latest
strategy:
matrix:
go: [ 1.15.x, 1.16.x ]
steps:
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: ${{ matrix.go }}
- name: Check out code
uses: actions/checkout@v2
- name: Build
run: go build -v ./...
- name: Test
run: go test -v ./...
fuzz:
name: Fuzz
runs-on: ubuntu-latest
steps:
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.16.x
- name: Check out code
uses: actions/checkout@v2
- name: Fuzz
run: |
make -f Makefile.fuzz get
make -f Makefile.fuzz