name: Go

on:
  push:
    branches:
      - master
    paths-ignore:
      - '**/*.md'
      - 'Makefile'
  pull_request:
    branches:
      - master
    paths-ignore:
      - '**/*.md'
      - 'Makefile'

jobs:

  build:
    runs-on: ubuntu-latest
    steps:
    - uses: actions/checkout@v2

    - name: Set up Go
      uses: actions/setup-go@v2
      with:
        go-version: 1.17

    - name: Lint
      uses: golangci/golangci-lint-action@v2

    - name: Build
      run: go build -v ./...

    - name: Test & Coverage
      run: go test -v -coverprofile=coverage.out -covermode=atomic

    - name: Upload coverage to Codecov
      run: bash <(curl -s https://codecov.io/bash)

Add GH action for tests/linting
Add GH action for tests/linting