name: check_formatting
on: [pull_request]
jobs:

  build:
    name: Check Formatting
    runs-on: ubuntu-latest
    steps:

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

    - name: Check out code
      uses: actions/checkout@v2

    - name: Run go fmt
      run: |
        gofmt -l . | grep -vF vendor/ && exit 1 || echo "All files formatted correctly"


Add a go fmt check
Add a go fmt check

Signed-off-by: Morgan Tocker <cfa41afc5ac20f7c1e01316e2d765e1ba4c4bf7a@gmail.com>
