Skip to content

[TA-4307] Migrate golangci-lint to v2 #503

[TA-4307] Migrate golangci-lint to v2

[TA-4307] Migrate golangci-lint to v2 #503

name: XRPL-GO Lint and Test
on:
push:
branches: [main]
pull_request:
branches: ["**"]
jobs:
build:
name: Lint and Test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v4
with:
go-version: "1.23"
cache: true
- name: Install golangci-lint
run: go install github.com/golangci/golangci-lint/v2/cmd/golangci-lint@v2.2.2
- name: Lint (debug)
run: |
golangci-lint --version
golangci-lint config path || true
golangci-lint linters | sed -n '1,150p'
golangci-lint run -v --print-issued-lines --config .golangci.yml ./...
- name: Run linter.
run: make lint
- name: Run tests
run: make test-ci