cleanup
All checks were successful
Tests / Run integration tests (pull_request) Successful in 3m47s

This commit is contained in:
Roy Crihfield 2023-09-03 17:00:18 +08:00
parent 02f5301729
commit fdf1e6c031

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