server/handler: Add ConnectionAuthenticated callback which Vitess can call once the connection is authenticated. #14474
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Test | |
| on: [pull_request] | |
| concurrency: | |
| group: test-${{ github.event.pull_request.number || github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| test: | |
| strategy: | |
| matrix: | |
| platform: [ubuntu-latest, macos-latest, windows-latest] | |
| runs-on: ${{ matrix.platform }} | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Install Go | |
| uses: actions/setup-go@v5 | |
| with: | |
| go-version-file: go.mod | |
| - name: Install ICU4C (MacOS) | |
| if: ${{ matrix.platform == 'macos-latest' }} | |
| run: | | |
| dir=$(brew --cellar icu4c) | |
| dir="$dir"/$(ls "$dir") | |
| echo CGO_CPPFLAGS=-I$dir/include >> $GITHUB_ENV | |
| echo CGO_LDFLAGS=-L$dir/lib >> $GITHUB_ENV | |
| - name: Install ICU4C (Windows) | |
| if: ${{ matrix.platform == 'windows-latest' }} | |
| uses: msys2/setup-msys2@v2 | |
| with: | |
| path-type: inherit | |
| msystem: UCRT64 | |
| pacboy: icu:p toolchain:p pkg-config:p | |
| - name: Test | |
| if: ${{ matrix.platform == 'macos-latest' }} | |
| run: go test ./... | |
| env: | |
| CI_TEST: "true" | |
| - name: Test | |
| if: ${{ matrix.platform == 'windows-latest' }} | |
| shell: msys2 {0} | |
| run: go.exe test ./... | |
| env: | |
| CI_TEST: "true" | |
| - name: Test | |
| if: ${{ matrix.platform == 'ubuntu-latest' }} | |
| run: go test -race ./... | |
| env: | |
| CI_TEST: "true" |