Commit cf33f16a authored by George Hotz's avatar George Hotz

add some CI

parent a24394dc
name: Tests
on: [push, pull_request]
jobs:
unit:
name: Tests
runs-on: ubuntu-latest
steps:
- name: Checkout Code
uses: actions/checkout@v2
- name: Install Go
run: |
sudo apt-get update
sudo apt-get -y --no-install-recommends install golang
- name: Build minigeth
run: |
(cd minigeth/ && go build)
mkdir -p /tmp/eth
- name: Test block 13284491
run: minigeth/go-ethereum 13284491
- name: Test block 13284469
run: minigeth/go-ethereum 13284469
- name: Test block 13284053
run: minigeth/go-ethereum 13284053
\ No newline at end of file
...@@ -72,6 +72,6 @@ func main() { ...@@ -72,6 +72,6 @@ func main() {
if block.Header().Root == newheader.Root { if block.Header().Root == newheader.Root {
fmt.Println("good transition") fmt.Println("good transition")
} else { } else {
fmt.Println("BAD transition :((") panic("BAD transition :((")
} }
} }
...@@ -149,6 +149,7 @@ func PrefetchCode(blockNumber *big.Int, addrHash common.Hash) { ...@@ -149,6 +149,7 @@ func PrefetchCode(blockNumber *big.Int, addrHash common.Hash) {
} }
func PrefetchBlock(blockNumber *big.Int) { func PrefetchBlock(blockNumber *big.Int) {
// TODO: Write this.
} }
func getProofAccount(blockNumber *big.Int, addr common.Address, skey common.Hash, storage bool) []string { func getProofAccount(blockNumber *big.Int, addr common.Address, skey common.Hash, storage bool) []string {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment