diff --git a/.github/workflows/split-cluster.yml b/.github/workflows/split-cluster-bisect.yml similarity index 98% rename from .github/workflows/split-cluster.yml rename to .github/workflows/split-cluster-bisect.yml index 98ebc67db02e0..c06fbefbef98a 100644 --- a/.github/workflows/split-cluster.yml +++ b/.github/workflows/split-cluster-bisect.yml @@ -1,6 +1,5 @@ name: Split Cluster Check -on: - pull_request: +on: push: branches: - main diff --git a/.github/workflows/split-cluster-pr.yml b/.github/workflows/split-cluster-pr.yml new file mode 100644 index 0000000000000..d9dc8a99cb3ee --- /dev/null +++ b/.github/workflows/split-cluster-pr.yml @@ -0,0 +1,29 @@ +name: Split Cluster Check +on: + pull_request: +jobs: + validate-mainnet: + runs-on: ubuntu-ghcloud + steps: + - name: checkout code repository + uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # Pin v4.1.1 + with: + fetch-depth: 0 + - name: Run split cluster check script + id: mn-split-cluster-check + run: | + SUI_PROTOCOL_CONFIG_CHAIN_OVERRIDE=mainnet \ + scripts/compatibility/split-cluster-check.sh origin/mainnet ${{ github.sha }} + + validate-testnet: + runs-on: ubuntu-ghcloud + steps: + - name: checkout code repository + uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # Pin v4.1.1 + with: + fetch-depth: 0 + - name: Run split cluster check script + id: tn-split-cluster-check + run: | + SUI_PROTOCOL_CONFIG_CHAIN_OVERRIDE=testnet \ + scripts/compatibility/split-cluster-check.sh origin/testnet ${{ github.sha }}