name: CI
on: [push, pull_request]

jobs:
  build:
    name: Build
    runs-on: ubuntu-latest
    steps:

    - name: Set up Go 1.14
      uses: actions/setup-go@v1
      with:
        go-version: 1.14
      id: go

    - name: Check out code into the Go module directory
      uses: actions/checkout@v1

    - name: Deps
      run: go mod download
      
    - name: Vet
      run: go vet ./...

    - name: Test
      run: go test ./...


name: CI
on: [push, pull_request]

jobs:
  build:
    name: Build
    runs-on: ubuntu-latest
    strategy:
      matrix:
        go: ['1.12', '1.13', '1.14', '1.15']
    steps:

    - uses: actions/checkout@v2
    - name: Set up Go ${{ matrix.go }}
      uses: actions/setup-go@v2
      with:
        go-version: ${{ matrix.go }}

    - name: Deps
      run: go mod download
      
    - name: Vet
      run: go vet ./...

    - name: Test
      run: go test ./...


Test on all supported versions of go Update workflows to latest versions
Test on all supported versions of go
Update workflows to latest versions
