Refactor to use statediff plugin #1
@ -17,6 +17,13 @@ jobs:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- name: Install test fixtures
|
||||
uses: actions/checkout@v3
|
||||
with:
|
||||
repository: cerc-io/eth-testing
|
||||
path: ./fixtures
|
||||
ref: v0.3.1
|
||||
token: ${{ secrets.CICD_REPO_TOKEN }}
|
||||
- uses: actions/setup-go@v3
|
||||
with:
|
||||
go-version-file: go.mod
|
||||
@ -25,7 +32,7 @@ jobs:
|
||||
env:
|
||||
TOKEN: ${{ secrets.CICD_REPO_TOKEN }}
|
||||
run: |
|
||||
git config --global url."https://$TOKEN:@git.vdb.to/".insteadOf "https://git.vdb.to/"
|
||||
git config --global url."https://$TOKEN:@git.vdb.to/".insteadOf 'https://git.vdb.to/'
|
||||
- name: Build package
|
||||
run: go build .
|
||||
- name: Run unit tests
|
||||
@ -40,12 +47,12 @@ jobs:
|
||||
|
||||
# Run a sanity test against the fixture data
|
||||
# Complete integration tests are TODO
|
||||
- name: Run integration tests
|
||||
- name: Run basic integration test
|
||||
env:
|
||||
SNAPSHOT_MODE: postgres
|
||||
SNAPSHOT_BLOCK_HEIGHT: 32
|
||||
LEVELDB_PATH: ./fixture/chain2data
|
||||
LEVELDB_ANCIENT: ./fixture/chain2data/ancient
|
||||
SNAPSHOT_BLOCK_HEIGHT: 10
|
||||
LEVELDB_PATH: ./fixtures/chaindata/_data/small2
|
||||
LEVELDB_ANCIENT: ./fixtures/chaindata/_data/small2/ancient
|
||||
run: |
|
||||
until
|
||||
ready_query='select max(version_id) from goose_db_version;'
|
||||
@ -63,5 +70,5 @@ jobs:
|
||||
}
|
||||
set -x
|
||||
[[ "$(count_results eth.header_cids)" = 1 ]]
|
||||
[[ "$(count_results eth.state_cids)" = 5 ]]
|
||||
[[ "$(count_results eth.storage_cids)" = 13 ]]
|
||||
[[ "$(count_results eth.state_cids)" = 273 ]]
|
||||
[[ "$(count_results eth.storage_cids)" = 31 ]]
|
||||
|
@ -9,13 +9,11 @@
|
||||
level = "debug"
|
||||
|
||||
[snapshot]
|
||||
mode = "postgres"
|
||||
workers = 4
|
||||
blockHeight = 0
|
||||
recoveryFile = "snapshot_recovery_file"
|
||||
|
||||
[file]
|
||||
outputDir = "test-output"
|
||||
# Note: these are overriden in the workflow step
|
||||
# mode = "postgres"
|
||||
# blockHeight = 0
|
||||
|
||||
[ethereum]
|
||||
clientName = "test-client"
|
||||
|
Loading…
Reference in New Issue
Block a user