name: Go Test

on:
  pull_request:
  push:
    branches: ["master","release-v0[0-9][0-9]"]
  workflow_dispatch:

permissions:
  contents: read

concurrency:
  group: ${{ github.workflow }}-${{ github.event_name }}-${{ github.event_name == 'push' && github.sha || github.ref }}
  cancel-in-progress: true

jobs:
  go-test:
    uses: ./.github/workflows/go-test-template.yml
    with:
      go-versions: '["1.23.x", "1.24.x"]'
    secrets:
      CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
