name: Tests
on: [push, pull_request]

jobs:

  build:
    name: Build
    strategy:
      matrix:
        go-version:
          - "1.9"
          - "1.10"
          - "1.11"
          - "1.12"
          - "1.13"
        platform: [ubuntu-latest]
    runs-on: ${{ matrix.platform }}
    env:
      GO111MODULE: on
    steps:

    - name: Setup env
      run: |
        echo "::set-env name=GOPATH::$GITHUB_WORKSPACE"
        echo "::set-env name=CURRENT_WORKSPACE::$GITHUB_WORKSPACE/src/github.com/${{ github.repository }}"
        echo "::add-path::$GITHUB_WORKSPACE/bin"

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

    - name: Check out code into the Go module directory
      uses: actions/checkout@v2
      with:
        path: ${{ env.CURRENT_WORKSPACE }}

    - name: Get dependencies
      run: go get -v ./...
      working-directory: ${{ env.CURRENT_WORKSPACE }}

    - name: Run go vet
      run: go vet ./...
      working-directory: ${{ env.CURRENT_WORKSPACE }}

    - name: Run tests
      run: ./test.sh
      working-directory: ${{ env.CURRENT_WORKSPACE }}

    - name: Upload coverage to Codecov
      uses: codecov/codecov-action@v1
      with:
        token: ${{ secrets.CODECOV_TOKEN }}

name: Tests
on: [push, pull_request]

jobs:

  build:
    strategy:
      matrix:
        go-version:
          - "1.9"
          - "1.10"
          - "1.11"
          - "1.12"
          - "1.13"
          - "1.14"
        platform: [ubuntu-latest]

    env:
      GO111MODULE: on

    runs-on: ${{ matrix.platform }}
    steps:

    - name: Setup env
      run: |
        echo "::set-env name=GOPATH::$GITHUB_WORKSPACE"
        echo "::set-env name=CURRENT_WORKSPACE::$GITHUB_WORKSPACE/src/github.com/${{ github.repository }}"
        echo "::add-path::$GITHUB_WORKSPACE/bin"

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

    - name: Check out code into the Go module directory
      uses: actions/checkout@v2
      with:
        path: ${{ env.CURRENT_WORKSPACE }}

    - name: Get dependencies
      run: go get -v ./...
      working-directory: ${{ env.CURRENT_WORKSPACE }}

    - name: Run go vet
      run: go vet ./...
      working-directory: ${{ env.CURRENT_WORKSPACE }}

    - name: Run tests
      run: ./test.sh
      working-directory: ${{ env.CURRENT_WORKSPACE }}

    - name: Upload coverage to Codecov
      uses: codecov/codecov-action@v1
      with:
        token: ${{ secrets.CODECOV_TOKEN }}

Add Go 1.14 to workflow
Add Go 1.14 to workflow