0g-chain/.github/workflows/ci-default.yml

72 lines
2.0 KiB
YAML
Raw Normal View History

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:
go-version: "1.19"
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
with:
submodules: true
2022-11-30 20:30:32 +00:00
- name: Set up Go
uses: actions/setup-go@v3
with:
go-version: "1.19"
2022-11-30 20:30:32 +00:00
check-latest: true
cache: true
- name: run unit tests
run: make test
- name: run e2e tests
run: make docker-build test-e2e
validate-internal-testnet-genesis:
runs-on: ubuntu-latest
steps:
- name: checkout repo from master
uses: actions/checkout@v3
with:
ref: master
- name: checkout version of kava used by internal testnet
run: |
git pull -p
git checkout $(cat ./ci/env/kava-internal-testnet/KAVA.VERSION)
- name: Set up Go
uses: actions/setup-go@v3
with:
go-version: "1.19"
check-latest: true
cache: true
- name: build kava cli
run: make install
- name: validate testnet genesis
run: kava validate-genesis ci/env/kava-internal-testnet/genesis.json
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:
go-version: "1.19"
2023-02-27 21:45:10 +00:00
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