markdown/.github/workflows/go.yml

38 lines
944 B
YAML

name: Go
on: [push, pull_request]
jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- name: Set up Go 1.13
uses: actions/setup-go@v1
with:
go-version: 1.13
- name: Check out source code
uses: actions/checkout@v1
- name: Test
run: go test -v ./...
- name: Benchmark
run: go test -run=^$ -bench=BenchmarkReference -benchmem
- name: Coverage
run: ./s/test_with_codecoverage.sh
# TODO: enable
#- name: Fuzz
# run: ./s/ci_fuzzit.sh
- name: Staticcheck
run: |
# add executables installed with go get to PATH
# TODO: this will hopefully be fixed by
# https://github.com/actions/setup-go/issues/14
export PATH=${PATH}:`go env GOPATH`/bin
go get -u honnef.co/go/tools/cmd/staticcheck
# TODO: fix issues and re-enable
# staticcheck ./...