feat(ha): High Availability RelayMiner - Horizontally Scalable Architecture #10102
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: Run tests | |
| on: | |
| push: | |
| branches: ["main"] | |
| pull_request: | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.head_ref || github.ref_name }} | |
| cancel-in-progress: true | |
| env: | |
| GKE_CLUSTER: protocol-us-central1 | |
| GKE_ZONE: us-central1 | |
| jobs: | |
| go-test: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: "0" # Per https://github.com/ignite/cli/issues/1674#issuecomment-1144619147 | |
| - name: Set up Go | |
| uses: actions/setup-go@v4 | |
| with: | |
| go-version: "1.24.3" | |
| - name: Install CI dependencies | |
| run: make install_ci_deps | |
| - name: install ignite | |
| run: make ignite_install | |
| # This is commented out because proto generated code is now tracked in the | |
| # repo so this step is skipped. | |
| # TODO_IMPROVE(@okdas): Have a step that regenerates the proto files and ensures | |
| # if they are up to date. See https://github.com/pokt-network/poktroll/pull/544#issuecomment-2123063491 | |
| # - name: Generate protobufs | |
| # run: make proto_regen | |
| - name: Generate mocks | |
| run: make go_mockgen | |
| - name: Verify all proto files have stable marshaler configured | |
| run: make check_proto_unstable_marshalers | |
| - name: golangci-lint | |
| uses: golangci/golangci-lint-action@v8 | |
| with: | |
| version: v2.1 | |
| args: --timeout 20m --verbose | |
| - name: Test | |
| run: make test_all |