update CI, use external fixture
All checks were successful
Tests / Run integration tests (pull_request) Successful in 3m48s

This commit is contained in:
Roy Crihfield 2023-09-29 03:35:05 +08:00
parent f47336825d
commit ade6cba58f
20 changed files with 10 additions and 14 deletions

View File

@ -34,16 +34,24 @@ jobs:
TOKEN: ${{ secrets.CICD_REPO_TOKEN }}
run: |
git config --global url."https://$TOKEN:@git.vdb.to/".insteadOf "https://git.vdb.to/"
- name: Build package
run: go build .
- name: Install test fixtures
uses: actions/checkout@v3
with:
repository: cerc-io/eth-testing
path: ./fixtures
ref: v0.3.1
# Run a sanity test against the fixture data
# Complete integration tests are TODO
- name: Run basic integration test
env:
DATABASE_TYPE: postgres
LEVELDB_PATH: ./fixture/chaindata
LEVELDB_ANCIENT: ./fixture/chaindata/ancient
LEVELDB_PATH: ./fixtures/chaindata/_data/small
LEVELDB_ANCIENT: ./fixtures/chaindata/_data/small/ancient
LOG_FILE: ./server-log
ETH_GENESIS_BLOCK: "0x37cbb63c7150a7b60f2878433963ed8ba7e5f82fb2683ec7a945c974e1cf4e05"
timeout-minutes: 30
run: |
./eth-statediff-service --config ./test/ci-config.toml serve &

6
fixture/.gitignore vendored
View File

@ -1,6 +0,0 @@
*/*.log
*/CURRENT*
*/LOCK
*/LOG
*/MANIFEST-*
*/ancient/FLOCK

Binary file not shown.

Binary file not shown.

View File

@ -1 +0,0 @@
<EFBFBD><01>

View File

@ -1 +0,0 @@
<EFBFBD><01>

Binary file not shown.

View File

@ -1 +0,0 @@
<EFBFBD><01>

View File

@ -1 +0,0 @@
<EFBFBD><01>

View File

@ -1 +0,0 @@
<EFBFBD><01>

View File

@ -31,6 +31,5 @@
chainConfig = "test/ci-chain.json"
nodeID = ""
clientName = "eth-statediff-service"
genesisBlock = "0x37cbb63c7150a7b60f2878433963ed8ba7e5f82fb2683ec7a945c974e1cf4e05"
networkID = 1
chainID = 41337