feat(collections): add optional key and value naming methods #72505
Workflow file for this run
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: Lint | |
on: | |
push: | |
branches: | |
- main | |
- release/** | |
pull_request: | |
merge_group: | |
permissions: | |
contents: read | |
jobs: | |
golangci: | |
name: golangci-lint | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-go@v5 | |
with: | |
go-version: "1.23" | |
check-latest: true | |
- uses: technote-space/[email protected] | |
id: git_diff | |
with: | |
PATTERNS: | | |
**/*.mk | |
Makefile | |
**/Makefile | |
.golangci.yml | |
- name: Get rocksdb version | |
run: ./.github/scripts/get-rocksdb-version.sh | |
- name: Fix permissions for cache | |
run: sudo chown $(whoami) /usr/local/lib /usr/local/include | |
- name: Restore rocksdb libraries cache | |
id: cache-rocksdb | |
uses: actions/cache/restore@v4 | |
with: | |
path: | | |
/usr/local/lib/librocksdb.* | |
/usr/local/include/rocksdb | |
key: ${{ runner.os }}-rocksdb-${{ env.ROCKSDB_VERSION }}-amd64 | |
- name: Install rocksdb deps | |
run: ./.github/scripts/install-rocksdb-deps.sh | |
- name: Install rocksdb | |
if: steps.cache-rocksdb.outputs.cache-hit != 'true' | |
run: ./.github/scripts/install-rocksdb.sh | |
- name: run linting (long) | |
if: env.GIT_DIFF | |
id: lint_long | |
run: | | |
make lint | |
env: | |
ROCKSDB: 1 | |
- uses: technote-space/[email protected] | |
if: steps.lint_long.outcome == 'skipped' | |
with: | |
PATTERNS: | | |
**/*.go | |
*.go | |
!store/** | |
- name: run linting (short) | |
if: steps.lint_long.outcome == 'skipped' && env.GIT_DIFF | |
run: | | |
make lint | |
env: | |
GIT_DIFF: ${{ env.GIT_DIFF }} | |
LINT_DIFF: 1 | |
- uses: technote-space/[email protected] | |
if: steps.lint_long.outcome == 'skipped' | |
with: | |
PATTERNS: | | |
store/** | |
- name: run linting (short) | |
if: steps.lint_long.outcome == 'skipped' && env.GIT_DIFF | |
run: | | |
make lint | |
env: | |
GIT_DIFF: ${{ env.GIT_DIFF }} | |
LINT_DIFF: 1 | |
ROCKSDB: 1 |