Skip to content

refactor(proxy): complete tls-client migration with fixes and tests #17

refactor(proxy): complete tls-client migration with fixes and tests

refactor(proxy): complete tls-client migration with fixes and tests #17

Workflow file for this run

name: Lint
on:
push:
branches: [main, master, develop]
pull_request:
branches: [main, master, develop]
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
permissions:
contents: read
env:
STATICCHECK_VERSION: '0.7.0'
ACTIONLINT_VERSION: '1.7.1'
jobs:
golangci-lint:
name: Lint with golangci-lint
runs-on: ubuntu-latest
timeout-minutes: 5
permissions:
contents: read
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: '1.25'
cache: true
- name: Download dependencies
run: go mod download
- name: Run golangci-lint
uses: golangci/golangci-lint-action@v7
with:
version: v2.11.4
args: --timeout=5m
gofmt:
name: Check formatting
runs-on: ubuntu-latest
timeout-minutes: 2
permissions:
contents: read
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: '1.25'
cache: true
- name: Check formatting
run: |
if [ -n "$(gofmt -l .)" ]; then
echo "The following files are not formatted correctly:"
gofmt -l .
exit 1
fi
govet:
name: Run go vet
runs-on: ubuntu-latest
timeout-minutes: 3
permissions:
contents: read
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: '1.25'
cache: true
- name: Download dependencies
run: go mod download
- name: Run go vet
run: go vet ./...
staticcheck:
name: Static Analysis
runs-on: ubuntu-latest
timeout-minutes: 5
permissions:
contents: read
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: '1.25'
cache: true
- name: Download dependencies
run: go mod download
- name: Install staticcheck
run: go install "honnef.co/go/tools/cmd/staticcheck@v${STATICCHECK_VERSION}"
- name: Run staticcheck
run: staticcheck ./...
actionlint:
name: Workflow Lint
runs-on: ubuntu-latest
timeout-minutes: 2
permissions:
contents: read
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: '1.25'
cache: true
- name: Install actionlint
run: go install "github.com/rhysd/actionlint/cmd/actionlint@v${ACTIONLINT_VERSION}"
- name: Run actionlint
run: actionlint
shell: bash