Skip to content

feat(session): add single-connection transport #5465

feat(session): add single-connection transport

feat(session): add single-connection transport #5465

Workflow file for this run

# https://github.com/golangci/golangci-lint-action?tab=readme-ov-file#options
name: golangci-lint.run
on:
push:
branches: ["main"]
pull_request:
paths:
- .github/workflows/golangci-lint.yml
- "**.go"
- go.mod
- go.sum
branches: ["**"]
permissions:
contents: read
pull-requests: read
jobs:
golangci-lint:
name: golangci-lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
- uses: actions/setup-go@v5
with:
cache: false
go-version-file: go.mod
- name: Install golangci-lint
run: go install github.com/golangci/golangci-lint/v2/cmd/golangci-lint@v2.7.2
- name: Configure git for authenticated clones
env:
GITHUB_TOKEN: ${{ github.token }}
run: |
git config --global url."https://${GITHUB_TOKEN}:x-oauth-basic@github.com/".insteadOf "https://github.com/"
- name: Cache custom golangci-lint
id: cache-custom-gcl
uses: actions/cache@v4
with:
path: custom-gcl
key: custom-gcl-${{ runner.os }}-${{ hashFiles('.custom-gcl.yml') }}
- name: Build custom golangci-lint
if: steps.cache-custom-gcl.outputs.cache-hit != 'true'
env:
GITHUB_TOKEN: ${{ github.token }}
run: golangci-lint custom
- name: Ensure custom golangci-lint is executable
run: chmod +x custom-gcl
- name: Run golangci-lint
run: ./custom-gcl run --verbose --config=.golangci.yml ./...