mirror of
https://github.com/0glabs/0g-chain.git
synced 2024-12-27 00:35:18 +00:00
bdf7a4d2a0
* ci: Use go 1.19 and rocksdb 7.9.2 * Use rocksdb v7.10.2 to match other workflow
53 lines
1.4 KiB
YAML
53 lines
1.4 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.19"
|
|
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.19"
|
|
check-latest: true
|
|
cache: true
|
|
- name: run unit tests
|
|
run: make test
|
|
- name: run e2e tests
|
|
run: make docker-build test-e2e
|
|
validate-testnet-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.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
|
|
- name: validate protonet genesis
|
|
run: kava validate-genesis ci/env/kava-protonet/genesis.json
|