diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml new file mode 100644 index 0000000..e52f709 --- /dev/null +++ b/.github/workflows/go.yml @@ -0,0 +1,43 @@ +name: CI + +on: [push, pull_request] + +jobs: + + build: + name: Build + runs-on: ubuntu-latest + 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@v2 + + - name: Get dependencies + run: go mod download + + - name: Run tests + run: go test -v ./... + + - name: Build binaries + run: ./build + + - name: Run integration tests + run: ./integration_test + + lint: + name: Lint + runs-on: ubuntu-latest + steps: + + - name: Check out code into the Go module directory + uses: actions/checkout@v2 + + - name: Run golangci-lint + uses: actions-contrib/golangci-lint@v1 + continue-on-error: true #TODO : fix linter errors