CBG-5792: Wait for the changes feed before starting a replicator #151
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
| # Copyright 2024-Present Couchbase, Inc. | |
| # | |
| # Use of this software is governed by the Business Source License included in | |
| # the file licenses/BSL-Couchbase.txt. As of the Change Date specified in that | |
| # file, in accordance with the Business Source License, use of this software | |
| # will be governed by the Apache License, Version 2.0, included in the file | |
| # licenses/APL2.txt. | |
| name: pre-commit | |
| on: | |
| push: | |
| branches: | |
| - main | |
| pull_request: | |
| branches: | |
| - "**" | |
| jobs: | |
| pre-commit: | |
| name: 'pre-commit' | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 | |
| # yamlfmt and shfmt hooks are installed from source by pre-commit. | |
| - uses: actions/setup-go@b7ad1dad31e06c5925ef5d2fc7ad053ef454303e # v7.0.0 | |
| with: | |
| go-version: 'stable' | |
| - uses: astral-sh/setup-uv@20cfd1bf945f4377ade1205e4dbc17946fc9a30d # v10.0.1 | |
| with: | |
| version: "latest" | |
| # The ty-check and topology-markers hooks are `language: unsupported`, | |
| # so they run `uv run ...` against the project venv directly. | |
| - name: Sync dependencies | |
| run: uv sync --group lint | |
| - uses: actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0 | |
| with: | |
| path: ~/.cache/pre-commit | |
| key: pre-commit-${{runner.os}}-${{hashFiles('.pre-commit-config.yaml')}} | |
| - name: Run pre-commit | |
| run: uvx pre-commit run --all-files --show-diff-on-failure --color=always |