feat: FIR-43725 add streaming to go sdk (#130) #179
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Code quality checks | |
on: | |
workflow_call: | |
inputs: | |
branch: | |
required: false | |
type: string | |
push: | |
branches: [ main, 1.x ] | |
jobs: | |
check-code: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out code | |
uses: actions/checkout@v2 | |
with: | |
ref: ${{ inputs.branch }} | |
- name: Set up Go | |
uses: actions/setup-go@v3 | |
with: | |
go-version: '1.18.0' | |
- name: Install goling | |
run: curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin v1.50.1 | |
- name: Install gocyclo | |
run: go install github.com/fzipp/gocyclo/cmd/gocyclo@latest | |
- name: Install goimports | |
run: go install golang.org/x/tools/cmd/[email protected] | |
- name: Run pre-commit checks | |
uses: pre-commit/[email protected] |