Skip to content

chore(deps): bump github.com/apache/pulsar-client-go from 0.19.0 to 0.20.0 in /api #230

chore(deps): bump github.com/apache/pulsar-client-go from 0.19.0 to 0.20.0 in /api

chore(deps): bump github.com/apache/pulsar-client-go from 0.19.0 to 0.20.0 in /api #230

Workflow file for this run

name: Lint
on:
pull_request:
permissions:
contents: read
jobs:
golangci-lint:
name: Go Linting
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version-file: api/go.mod
cache: false
- name: Cache Go modules
uses: actions/cache@v5
with:
path: |
~/.cache/go-build
~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('api/go.sum') }}
restore-keys: |
${{ runner.os }}-go-
- name: Install protoc
run: |
sudo apt-get update
sudo apt-get install -y protobuf-compiler
- name: Download dependencies
working-directory: api
run: go mod download
- name: Install Go protobuf plugins
working-directory: api
run: |
go install google.golang.org/protobuf/cmd/[email protected]
go install google.golang.org/grpc/cmd/[email protected]
- name: Generate protobuf code
working-directory: api
run: |
export PATH="${PATH}:$(go env GOPATH)/bin"
cd internal/api/protobuf && ./generate.sh
# handler.go uses //go:embed swagger.yaml; file is gitignored locally but required for typecheck
- name: Prepare OpenAPI embed for lint
working-directory: api
run: cp docs/swagger.yaml internal/api/http/swagger.yaml
- name: Install golangci-lint
run: |
export PATH="${PATH}:$(go env GOPATH)/bin"
go install github.com/golangci/golangci-lint/cmd/golangci-lint@latest
- name: Run golangci-lint
working-directory: api
run: |
export PATH="${PATH}:$(go env GOPATH)/bin"
golangci-lint run --timeout=5m
dockerfile-lint:
name: Dockerfile Linting
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Run Hadolint
uses: hadolint/[email protected]
with:
dockerfile: docker/Dockerfile
failure-threshold: warning
continue-on-error: true
yaml-lint:
name: YAML Linting
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Run yamllint
uses: reviewdog/action-yamllint@v1
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
reporter: github-pr-check
yamllint_flags: '--ignore ".pre-commit-config.yaml"'
continue-on-error: true
workflow-lint:
name: Workflow Linting
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Run actionlint
uses: reviewdog/action-actionlint@v1
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
reporter: github-pr-review
continue-on-error: true