Refactor for v5 and IPFS v0 blockstore (#73)
* vulcanize => cerc * Use v0-blockstore based DB via ipld-eth-statedb/trie_by_cid * Update CI workflows * Update modules - concurrent iterator interface - ginkgo v2 - go 1.19
This commit is contained in:
@@ -1,26 +0,0 @@
|
||||
name: Basic Go build and test
|
||||
|
||||
on:
|
||||
pull_request:
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
|
||||
- name: Set up Go
|
||||
uses: actions/setup-go@v3
|
||||
with:
|
||||
go-version: 1.19
|
||||
|
||||
- name: Build
|
||||
run: go build -v ./...
|
||||
|
||||
- name : Bring up docker DB containers
|
||||
run: docker compose up -d
|
||||
|
||||
- name: Run test
|
||||
run: |
|
||||
sleep 30
|
||||
go test -v ./...
|
||||
@@ -0,0 +1,7 @@
|
||||
name: PR actions
|
||||
on:
|
||||
- pull_request
|
||||
|
||||
jobs:
|
||||
run-tests:
|
||||
uses: ./.github/workflows/test.yml
|
||||
@@ -0,0 +1,26 @@
|
||||
name: Run tests
|
||||
|
||||
on:
|
||||
pull_request:
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- uses: actions/setup-go@v3
|
||||
with:
|
||||
go-version-file: 'go.mod'
|
||||
check-latest: true
|
||||
- name: "Run DB container"
|
||||
working-directory: ./test
|
||||
run: |
|
||||
docker compose up -d --quiet-pull
|
||||
- name: "Build and run tests"
|
||||
run: |
|
||||
until [[ "$(docker inspect test-ipld-eth-db | jq -r '.[0].State.Status')" = 'running' ]]
|
||||
do sleep 1; done &
|
||||
|
||||
go build ./...
|
||||
wait $!
|
||||
go test -v ./...
|
||||
Reference in New Issue
Block a user