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
|
2023-11-08 22:06:03 +00:00
|
|
|
uses: actions/checkout@v4
|
2022-11-30 20:30:32 +00:00
|
|
|
- name: Set up Go
|
2023-11-08 22:06:03 +00:00
|
|
|
uses: actions/setup-go@v4
|
2022-11-30 20:30:32 +00:00
|
|
|
with:
|
2023-11-08 22:06:03 +00:00
|
|
|
go-version-file: go.mod
|
|
|
|
cache-dependency-path: |
|
|
|
|
go.sum
|
|
|
|
tests/e2e/kvtool/go.sum
|
2022-11-30 20:30:32 +00:00
|
|
|
- name: build application
|
|
|
|
run: make build
|
|
|
|
test:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- name: checkout repo from current commit
|
2023-11-08 22:06:03 +00:00
|
|
|
uses: actions/checkout@v4
|
2023-03-07 22:37:45 +00:00
|
|
|
with:
|
|
|
|
submodules: true
|
2022-11-30 20:30:32 +00:00
|
|
|
- name: Set up Go
|
2023-11-08 22:06:03 +00:00
|
|
|
uses: actions/setup-go@v4
|
2022-11-30 20:30:32 +00:00
|
|
|
with:
|
2023-11-08 22:06:03 +00:00
|
|
|
go-version-file: go.mod
|
|
|
|
cache-dependency-path: |
|
|
|
|
go.sum
|
|
|
|
tests/e2e/kvtool/go.sum
|
2022-11-30 20:30:32 +00:00
|
|
|
- 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
|
2024-06-17 17:53:41 +00:00
|
|
|
fuzz:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- name: checkout repo from current commit
|
|
|
|
uses: actions/checkout@v4
|
|
|
|
with:
|
|
|
|
submodules: true
|
|
|
|
- name: Set up Go
|
|
|
|
uses: actions/setup-go@v4
|
|
|
|
with:
|
|
|
|
go-version-file: go.mod
|
|
|
|
cache-dependency-path: |
|
|
|
|
go.sum
|
|
|
|
- name: run fuzz tests
|
|
|
|
run: make test-fuzz
|
2024-04-19 19:35:13 +00:00
|
|
|
ibc-test:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- name: checkout repo from current commit
|
|
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Set up Go
|
2024-06-24 21:55:40 +00:00
|
|
|
uses: actions/setup-go@v5
|
2024-04-19 19:35:13 +00:00
|
|
|
with:
|
|
|
|
go-version-file: tests/e2e-ibc/go.mod
|
2024-06-24 21:55:40 +00:00
|
|
|
cache-dependency-path: |
|
|
|
|
tests/e2e-ibc/go.sum
|
|
|
|
go.sum
|
2024-04-19 19:35:13 +00:00
|
|
|
- name: run ibc e2e tests
|
|
|
|
run: make test-ibc
|
2023-04-06 19:10:46 +00:00
|
|
|
validate-internal-testnet-genesis:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
2023-04-27 14:49:55 +00:00
|
|
|
- name: checkout repo from current commit
|
2023-11-08 22:06:03 +00:00
|
|
|
uses: actions/checkout@v4
|
2023-04-27 14:49:55 +00:00
|
|
|
- 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
|
2024-06-12 19:45:29 +00:00
|
|
|
- name: checkout version of kava that will be deployed if this pr is merged
|
2023-11-08 22:06:03 +00:00
|
|
|
uses: actions/checkout@v4
|
2023-04-27 14:49:55 +00:00
|
|
|
with:
|
2024-06-12 19:45:29 +00:00
|
|
|
ref: ${{ steps.kava-version.outputs.KAVA_VERSION }}
|
2023-04-27 14:49:55 +00:00
|
|
|
- name: Set up Go
|
2023-11-08 22:06:03 +00:00
|
|
|
uses: actions/setup-go@v4
|
2023-04-27 14:49:55 +00:00
|
|
|
with:
|
2023-11-08 22:06:03 +00:00
|
|
|
go-version-file: go.mod
|
2023-04-27 14:49:55 +00:00
|
|
|
- name: build kava cli
|
|
|
|
run: make install
|
|
|
|
- name: checkout repo from current commit to validate current branch's genesis
|
2023-11-08 22:06:03 +00:00
|
|
|
uses: actions/checkout@v4
|
2023-04-27 14:49:55 +00:00
|
|
|
- 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
|
2023-11-08 22:06:03 +00:00
|
|
|
uses: actions/checkout@v4
|
2023-02-27 21:45:10 +00:00
|
|
|
- name: Set up Go
|
2023-11-08 22:06:03 +00:00
|
|
|
uses: actions/setup-go@v4
|
2023-02-27 21:45:10 +00:00
|
|
|
with:
|
2023-11-08 22:06:03 +00:00
|
|
|
go-version-file: go.mod
|
2023-02-27 21:45:10 +00:00
|
|
|
- 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
|