2022-11-30 20:30:32 +00:00
|
|
|
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:
|
2023-05-03 23:16:47 +00:00
|
|
|
go-version: "1.20"
|
2022-11-30 20:30:32 +00:00
|
|
|
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
|
2023-03-07 22:37:45 +00:00
|
|
|
with:
|
|
|
|
submodules: true
|
2022-11-30 20:30:32 +00:00
|
|
|
- name: Set up Go
|
|
|
|
uses: actions/setup-go@v3
|
|
|
|
with:
|
2023-05-03 23:16:47 +00:00
|
|
|
go-version: "1.20"
|
2022-11-30 20:30:32 +00:00
|
|
|
check-latest: true
|
|
|
|
cache: true
|
|
|
|
- name: run unit tests
|
|
|
|
run: make test
|
2023-02-23 00:13:11 +00:00
|
|
|
- name: run e2e tests
|
|
|
|
run: make docker-build test-e2e
|
2023-10-25 17:09:19 +00:00
|
|
|
# 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
|
2023-04-06 19:10:46 +00:00
|
|
|
validate-protonet-genesis:
|
2023-02-27 21:45:10 +00:00
|
|
|
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:
|
2023-05-03 23:16:47 +00:00
|
|
|
go-version: "1.20"
|
2023-02-27 21:45:10 +00:00
|
|
|
check-latest: true
|
|
|
|
cache: true
|
|
|
|
- name: build kava cli
|
|
|
|
run: make install
|
2023-03-31 22:41:11 +00:00
|
|
|
- name: validate protonet genesis
|
|
|
|
run: kava validate-genesis ci/env/kava-protonet/genesis.json
|