feat: leader election with kube api and send through k8s #479
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: Workflow - Pull Request | |
| on: | |
| workflow_dispatch: | |
| pull_request: | |
| branches: [main] | |
| types: | |
| - opened | |
| - edited | |
| - synchronize | |
| concurrency: | |
| group: pr-checks-${{ github.workflow }}-${{ github.head_ref || github.run_id }} | |
| cancel-in-progress: true | |
| jobs: | |
| pr-title: | |
| name: Enforce PR title | |
| uses: ./.github/workflows/task.pr-title.yml | |
| linters: | |
| name: Run linters | |
| uses: ./.github/workflows/task.linters.yml | |
| needs: [pr-title] | |
| cargo-linters: | |
| name: Run Cargo linters | |
| uses: ./.github/workflows/task.linters-cargo.yml | |
| needs: [pr-title] | |
| build-test: | |
| name: Build & Tests | |
| uses: ./.github/workflows/task.build-test.yml | |
| needs: [linters, cargo-linters] | |
| build-prod: | |
| name: Build Production | |
| uses: ./.github/workflows/task.build-prod.yml | |
| needs: [linters, cargo-linters] | |
| dev-smoke: | |
| name: Dev Command Smoke | |
| uses: ./.github/workflows/task.dev-smoke.yml | |
| needs: [build-prod] | |
| unlock-pr: | |
| name: Unlock PR | |
| needs: [build-prod] | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 |