Refactor to use plugeth-statediff #1

Merged
roysc merged 19 commits from refactor-use-plugin into v5 2023-09-28 04:04:01 +00:00
Showing only changes of commit fdf1e6c031 - Show all commits

View File

@ -36,22 +36,19 @@ jobs:
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 - name: Build package
run: go build . run: go build .
- name: Run server - name: Run server and tests
env: env:
DATABASE_TYPE: postgres DATABASE_TYPE: postgres
LEVELDB_PATH: ./fixture/chaindata LEVELDB_PATH: ./fixture/chaindata
LEVELDB_ANCIENT: ./fixture/chaindata/ancient LEVELDB_ANCIENT: ./fixture/chaindata/ancient
LOG_FILE_PATH: ./server-log LOG_FILE_PATH: ./server-log
timeout-minutes: 30 timeout-minutes: 30
# Run a sanity test against the fixture data
# Complete integration tests are TODO
run: | run: |
./eth-statediff-service --config ./test/ci-config.toml serve & ./eth-statediff-service --config ./test/ci-config.toml serve &
sleep 10 sleep 10
# # Run a sanity test against the fixture data
# # Complete integration tests are TODO
# - name: Run test
# timeout-minutes: 30
# run: |
./scripts/request-range.sh 0 32 || (E=$?; cat ./server-log; exit $E) ./scripts/request-range.sh 0 32 || (E=$?; cat ./server-log; exit $E)
until grep "Finished processing block 32" ./server-log until grep "Finished processing block 32" ./server-log