mirror of
https://github.com/0glabs/0g-chain.git
synced 2024-11-15 04:25:27 +00:00
a9583b16f4
* feat(community): add AnnualizedRewards grpc query (#1751)
* add annualized_reward query proto
* use sdkmath.LegacyDec to match RPS param...
* add AnnualizedRewards grpc query
* add changelog entry
* simplify calculation & expand test cases
(cherry picked from commit 0efe7f2281
)
* fix conflicts, remove community param references
* backport update to lint CI
* disable internal testnet genesis check
* fix initialization order of keepers in app.go
---------
Co-authored-by: Robert Pirtle <Astropirtle@gmail.com>
83 lines
2.6 KiB
YAML
83 lines
2.6 KiB
YAML
name: Continuous Integration (Default Checks)
|
|
|
|
on:
|
|
workflow_call:
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: checkout repo from current commit
|
|
uses: actions/checkout@v3
|
|
- name: Set up Go
|
|
uses: actions/setup-go@v3
|
|
with:
|
|
go-version: "1.20"
|
|
check-latest: true
|
|
cache: true
|
|
- name: build application
|
|
run: make build
|
|
test:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: checkout repo from current commit
|
|
uses: actions/checkout@v3
|
|
with:
|
|
submodules: true
|
|
- name: Set up Go
|
|
uses: actions/setup-go@v3
|
|
with:
|
|
go-version: "1.20"
|
|
check-latest: true
|
|
cache: true
|
|
- name: run unit tests
|
|
run: make test
|
|
- name: run e2e tests
|
|
run: make docker-build test-e2e
|
|
# this is only applicable for PRs based on master. Disabling for this release branch.
|
|
# validate-internal-testnet-genesis:
|
|
# runs-on: ubuntu-latest
|
|
# steps:
|
|
# - name: checkout repo from current commit
|
|
# uses: actions/checkout@v3
|
|
# - name: save version of kava that will be deployed if this pr is merged
|
|
# id: kava-version
|
|
# run: |
|
|
# echo "KAVA_VERSION=$(cat ./ci/env/kava-internal-testnet/KAVA.VERSION)" >> $GITHUB_OUTPUT
|
|
# - name: checkout repo from master
|
|
# uses: actions/checkout@v3
|
|
# with:
|
|
# ref: master
|
|
# - name: checkout version of kava that will be deployed if this pr is merged
|
|
# run: |
|
|
# git pull -p
|
|
# git checkout $KAVA_VERSION
|
|
# env:
|
|
# KAVA_VERSION: ${{ steps.kava-version.outputs.KAVA_VERSION }}
|
|
# - name: Set up Go
|
|
# uses: actions/setup-go@v3
|
|
# with:
|
|
# go-version: "1.20"
|
|
# check-latest: true
|
|
# cache: true
|
|
# - name: build kava cli
|
|
# run: make install
|
|
# - name: checkout repo from current commit to validate current branch's genesis
|
|
# uses: actions/checkout@v3
|
|
# - name: validate testnet genesis
|
|
# run: kava validate-genesis ci/env/kava-internal-testnet/genesis.json
|
|
validate-protonet-genesis:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: checkout repo from current commit
|
|
uses: actions/checkout@v3
|
|
- name: Set up Go
|
|
uses: actions/setup-go@v3
|
|
with:
|
|
go-version: "1.20"
|
|
check-latest: true
|
|
cache: true
|
|
- name: build kava cli
|
|
run: make install
|
|
- name: validate protonet genesis
|
|
run: kava validate-genesis ci/env/kava-protonet/genesis.json
|