Skip to content

Remove extra allocations in types package #4990

Remove extra allocations in types package

Remove extra allocations in types package #4990

Workflow file for this run

name: lint
on:
push:
branches:
- master
- release-*
pull_request:
workflow_dispatch:
jobs:
golangci:
name: golangci-lint
concurrency:
group: lint-golangci-${{ github.ref }}
cancel-in-progress: true
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: golangci-lint
uses: golangci/golangci-lint-action@v3
with:
version: v1.52.0
golangci-examples:
name: golangci-lint-examples
concurrency:
group: lint-golangci-examples-${{ github.ref }}
cancel-in-progress: true
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: generate examples golangci-lint config
run: sed 's/github.com\/ydb-platform\/ydb-go-sdk\/v3/examples/g' .golangci.yml > examples/.golangci.yml
- name: golangci-lint
uses: golangci/golangci-lint-action@v3
with:
version: v1.52.0
working-directory: examples
golangci-slo:
name: golangci-lint-slo
concurrency:
group: lint-golangci-slo-${{ github.ref }}
cancel-in-progress: true
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: generate slo golangci-lint config
run: sed 's/github.com\/ydb-platform\/ydb-go-sdk\/v3/slo/g' .golangci.yml > tests/slo/.golangci.yml
- name: golangci-lint
uses: golangci/golangci-lint-action@v3
with:
version: v1.52.0
working-directory: tests/slo
autoformatter:
name: autoformat check
concurrency:
group: lint-autoformat-${{ github.ref }}
cancel-in-progress: true
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install Go
uses: actions/setup-go@v3
with:
go-version: "1.21"
- name: Install utilities
run: |
go install mvdan.cc/gofumpt@v0.3.1
go install github.com/rinchsan/gosimports/cmd/gosimports@v0.1.5
- name: format all files with auto-formatter
run: bash ./.github/scripts/format-all-go-code.sh "$PWD"
- name: Check repository diff
run: bash ./.github/scripts/check-work-copy-equals-to-committed.sh "auto-format broken"