name: Go
on: [push]
jobs:

  build:
    name: Build
    runs-on: ubuntu-latest
    env:
      GO111MODULE: on
    steps:

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

    - name: Get dependencies
      run: go get -v -t -d ./...
    
    - name: Run tests
      run: go test -v ./...

    - name: Build
      run: ./build

name: Go
on: [push]
jobs:

  build:
    name: Build
    runs-on: ubuntu-latest
    env:
      GO111MODULE: on
    steps:

    - name: Set up Go 1.13
      uses: actions/setup-go@v1
      with:
        go-version: 1.13
      id: go
    
    - name: Check out code into the Go module directory
      uses: actions/checkout@v1

    - name: Get dependencies
      run: go get -v -t -d ./...
    
    - name: Cache
      uses: actions/cache@v1.0.0

    - name: Run tests
      run: go test -v ./...

    - name: Build
      run: ./build

Fix workflow to checkout code into modules
Fix workflow to checkout code into modules