name: Continupus Integration
on: [push, pull_request]
jobs:

  build:
    name: Build
    runs-on: ubuntu-latest
    env:
      BUILDFLAGS: -ldflags="-X github.com/bpicode/fritzctl/config.Version=undefined -X github.com/bpicode/fritzctl/config.Revision={{ github.sha }}"

    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: Environment information
      run: |
        uname -a
        pwd
        go version

    - name: Build
      run: go build "${BUILDFLAGS}" -v

    - name: Test
      run: go test "${BUILDFLAGS}" -run '(Test|Example)' -race -coverprofile=coverage.out -covermode=atomic ./...

    - name: Verify dependencies have expected content
      run: go mod verify

name: Continupus Integration
on: [push, pull_request]
jobs:

  build:
    name: Build
    runs-on: ubuntu-latest
    env:
      BUILDFLAGS: -ldflags="-X github.com/bpicode/fritzctl/config.Version=undefined -X github.com/bpicode/fritzctl/config.Revision={{ github.sha }}"

    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: Environment information
      run: |
        echo "UNAME: $(uname -a)"
        echo "PWD: $(pwd)"
        echo "GO: $(go version)"
        echo "BUILDFLAGS: ${BUILDFLAGS}"

    - name: Build
      run: go build "${BUILDFLAGS}" -v

    - name: Test
      run: go test "${BUILDFLAGS}" -run '(Test|Example)' -race -coverprofile=coverage.out -covermode=atomic ./...

    - name: Verify dependencies have expected content
      run: go mod verify

Print buildflags at the beginning of the workflow
Print buildflags at the beginning of the workflow
