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

92 lines
2.8 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@v4
2022-11-30 20:30:32 +00:00
- name: Set up Go
uses: actions/setup-go@v4
2022-11-30 20:30:32 +00:00
with:
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
uses: actions/checkout@v4
with:
submodules: true
2022-11-30 20:30:32 +00:00
- name: Set up Go
uses: actions/setup-go@v4
2022-11-30 20:30:32 +00:00
with:
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
- name: run e2e tests
run: make docker-build test-e2e
ibc-test:
runs-on: ubuntu-latest
steps:
- name: checkout repo from current commit
uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version-file: tests/e2e-ibc/go.mod
cache-dependency-path: tests/e2e-ibc/go.sum
- name: run ibc e2e tests
run: make test-ibc
validate-internal-testnet-genesis:
runs-on: ubuntu-latest
steps:
- name: checkout repo from current commit
uses: actions/checkout@v4
- 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@v4
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@v4
with:
go-version-file: go.mod
- name: build kava cli
run: make install
- name: checkout repo from current commit to validate current branch's genesis
uses: actions/checkout@v4
- 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@v4
2023-02-27 21:45:10 +00:00
- name: Set up Go
uses: actions/setup-go@v4
2023-02-27 21:45:10 +00:00
with:
go-version-file: go.mod
2023-02-27 21:45:10 +00:00
- name: build kava cli
run: make install
- name: validate protonet genesis
run: kava validate-genesis ci/env/kava-protonet/genesis.json