diff --git a/.github/workflows/go_test.yml b/.github/workflows/go_test.yml index 4029ad9..bff7abb 100644 --- a/.github/workflows/go_test.yml +++ b/.github/workflows/go_test.yml @@ -1,31 +1,31 @@ - on: - push: - branches: - - v2 - pull_request: - branches: - - v2 +on: + push: + branches: + - v2 + pull_request: + branches: + - v2 - name: lint and test - jobs: - golangci: - strategy: - matrix: - go-version: - - "1.23" - - "1.24" - name: lint and test - runs-on: ubuntu-latest - steps: - - name: Checkout code - uses: actions/checkout@v5 - - name: Install Go - uses: actions/setup-go@v5 - with: - go-version: ${{ matrix.go-version }} - - name: golangci-lint - uses: golangci/golangci-lint-action@v8.0.0 - with: - version: v2.1.5 - - name: test - run: make test_ci +name: lint and test +jobs: + golangci: + strategy: + matrix: + go-version: + - "1.24" + - "1.25" + name: lint and test + runs-on: ubuntu-latest + steps: + - name: Checkout code + uses: actions/checkout@v5 + - name: Install Go + uses: actions/setup-go@v5 + with: + go-version: ${{ matrix.go-version }} + - name: golangci-lint + uses: golangci/golangci-lint-action@v8.0.0 + with: + version: v2.4.0 + - name: test + run: make test_ci diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 125f461..27675c5 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -12,7 +12,7 @@ repos: - id: end-of-file-fixer - id: trailing-whitespace - repo: https://github.com/golangci/golangci-lint - rev: v2.1.5 + rev: v2.4.0 hooks: - id: golangci-lint - repo: https://github.com/TekWizely/pre-commit-golang