diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml new file mode 100644 index 0000000..2e0d17a --- /dev/null +++ b/.github/workflows/go.yml @@ -0,0 +1,46 @@ +name: Go + +on: + push: + branches: [ main ] + pull_request: + branches: [ main ] + +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: Go-linter + # You may pin to the exact commit or the version. + # uses: Jerome1337/golint-action@c5d17206a0a436bbf1edb91e314ed084f7c57589 + uses: Jerome1337/golint-action@v1.0.2 + #with: + # Path used by golint command + # golint-path: # optional, default is ./... + - name: Build + run: go build -v ./... + - name: Test + run: go test -v ./... + - name: GoReleaser Action + # You may pin to the exact commit or the version. + # uses: goreleaser/goreleaser-action@5a54d7e660bda43b405e8463261b3d25631ffe86 + uses: goreleaser/goreleaser-action@v2.7.0 + with: + # GoReleaser Distribution (goreleaser or goreleaser-pro) + distribution: goreleaser # optional, default is goreleaser + # GoReleaser version + version: latest # optional, default is latest + # Arguments to pass to GoReleaser + # args: # optional + # Working directory (below repository root) + # workdir: # optional, default is . + # Just install GoReleaser + # install-only: # optional, default is