fix(cluster): resolve four steady-state distributed cluster regressio… #182
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: | |
| push: | |
| branches: [main] | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - name: Load project settings | |
| id: settings | |
| run: | | |
| set -a | |
| source .project-settings.env | |
| set +a | |
| echo "go_version=${GO_VERSION}" >> "$GITHUB_OUTPUT" | |
| - name: Setup Go | |
| uses: actions/setup-go@v6 | |
| with: | |
| go-version: "${{ steps.settings.outputs.go_version }}" | |
| check-latest: true | |
| - name: Cache Go modules | |
| uses: actions/cache@v5 | |
| with: | |
| path: | | |
| ~/go/pkg/mod | |
| ~/.cache/go-build | |
| key: ${{ runner.os }}-go-${{ steps.settings.outputs.go_version }}-${{ hashFiles('**/go.sum') }} | |
| restore-keys: | | |
| ${{ runner.os }}-go-${{ steps.settings.outputs.go_version }}- | |
| - name: Modules | |
| run: go mod download | |
| - name: Test (race + shuffle + repeated) | |
| run: > | |
| RUN_INTEGRATION_TEST=yes | |
| go test -race -count=10 -shuffle=on -timeout=15m | |
| -coverprofile=coverage.out ./... | |
| - name: Upload coverage artifact | |
| uses: actions/upload-artifact@v6 | |
| with: | |
| name: coverage | |
| path: coverage.out |