Fix race condition in intercept handling when InterceptInfo is updated concurrently #5317
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: "Build and Unit test" | |
| on: | |
| pull_request: | |
| env: | |
| HOMEBREW_NO_INSTALL_FROM_API: | |
| jobs: | |
| unit: | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| runners: | |
| - ubuntu-latest | |
| - macos-latest | |
| - windows-latest | |
| runs-on: ${{ matrix.runners }} | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| ref: "${{ github.event.pull_request.head.sha }}" | |
| - name: install dependencies | |
| uses: ./.github/actions/install-dependencies | |
| - name: install build dependencies | |
| run: make build-deps | |
| - name: Lint | |
| if: ${{ runner.os != 'Windows' }} | |
| uses: golangci/golangci-lint-action@v7 | |
| with: | |
| args: --timeout 8m ./... | |
| - name: Lint (limited on windows) | |
| if: ${{ runner.os == 'Windows' }} | |
| uses: golangci/golangci-lint-action@v7 | |
| with: | |
| args: --timeout 8m ./cmd/telepresence/... ./integration_test/... ./pkg/... | |
| - name: Build | |
| run: make build | |
| - name: Run tests | |
| uses: nick-fields/retry/@v3 | |
| with: | |
| max_attempts: 3 | |
| timeout_minutes: 12 | |
| command: make check-unit |