[Tokenomics] Fix zero app stake chain halt #4749
This file contains 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@v3 | |
with: | |
fetch-depth: "0" # Per https://github.com/ignite/cli/issues/1674#issuecomment-1144619147 | |
- name: install ignite | |
run: make ignite_install | |
- name: Set up Go | |
uses: actions/setup-go@v4 | |
with: | |
go-version: "1.23.0" | |
- name: Install CI dependencies | |
run: make install_ci_deps | |
# 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: Run golangci-lint | |
run: make go_lint | |
- name: Test | |
run: make test_all |