fix: eliminate WebSocket read race in NewClient and fix all client_te… #3
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: CSI Sanity Tests | |
| on: | |
| push: | |
| branches: [ main, 'feature/enable-sanity-tests' ] | |
| paths: | |
| - 'pkg/**' | |
| - 'cmd/**' | |
| - 'tests/sanity/**' | |
| - 'go.mod' | |
| - 'go.sum' | |
| - '.github/workflows/sanity.yml' | |
| pull_request: | |
| branches: [ main ] | |
| paths: | |
| - 'pkg/**' | |
| - 'cmd/**' | |
| - 'tests/sanity/**' | |
| - 'go.mod' | |
| - 'go.sum' | |
| - '.github/workflows/sanity.yml' | |
| workflow_dispatch: | |
| permissions: | |
| contents: read | |
| jobs: | |
| sanity: | |
| name: CSI Sanity Tests | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - name: Set up Go | |
| uses: actions/setup-go@v6 | |
| with: | |
| go-version-file: go.mod | |
| cache: true | |
| - name: Download dependencies | |
| run: go mod download | |
| - name: Run CSI sanity tests | |
| run: make test-sanity | |
| - name: Run unit tests | |
| run: make test-unit |