diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml new file mode 100644 index 0000000..083ca92 --- /dev/null +++ b/.github/workflows/go.yml @@ -0,0 +1,31 @@ +name: Go + +on: + push: + paths: + - "**.go" + +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + + - name: Set up Go + uses: actions/setup-go@v2 + with: + go-version: 1.17 + + - name: Build + run: go build -v ./cmd/... + + - name: vet + run: go vet ./... + + - name: gofmt + uses: Jerome1337/gofmt-action@v1.0.4 + with: + gofmt-flags: "-l -d" + + - name: golint + uses: Jerome1337/golint-action@v1.0.2