Add raw parser for db integrity checks #4999
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Tests - DeFiCh/go-ethlibs | |
on: | |
workflow_dispatch: | |
push: | |
branches: | |
- master | |
pull_request: | |
branches: | |
- master | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref || github.run_id }} | |
cancel-in-progress: ${{ github.ref != 'refs/heads/master' }} | |
env: | |
NODE_URL: "http://127.0.0.1:19551/" | |
TARGET: x86_64-pc-linux-gnu | |
MAKE_DEBUG: 0 | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
container: defi/ain-builder:latest | |
env: | |
CARGO_INCREMENTAL: 0 | |
steps: | |
- uses: actions/checkout@v4 | |
- run: git config --global --add safe.directory '*' | |
- name: Populate environment | |
run: ./make.sh ci-export-vars | |
- name: Setup dependencies | |
run: ./make.sh ci-setup-deps | |
- name: Setup user dependencies | |
run: ./make.sh ci-setup-user-deps | |
- name: Restore cpp build cache | |
id: cpp-cache-restore | |
uses: actions/cache/restore@v3 | |
with: | |
path: | | |
./build/depends | |
./build/src | |
~/.ccache | |
key: cpp-${{ env.TARGET }}-${{ env.BUILD_TYPE }} | |
- name: Rust build cache | |
uses: Swatinem/rust-cache@v2 | |
id: rust-cache-restore | |
with: | |
workspaces: lib -> ../build/lib/target | |
save-if: ${{ github.ref == 'refs/heads/master' }} | |
shared-key: ${{ env.TARGET }} | |
- name: Build binaries | |
run: ./make.sh build | |
- name: Upload binaries | |
uses: actions/upload-artifact@v3 | |
with: | |
name: defi-bins | |
path: | | |
build/src/defid | |
build/src/defi-cli | |
- name: Upload shell commands | |
uses: actions/upload-artifact@v3 | |
with: | |
name: sync | |
path: ci/ethlibs_test/main.sh | |
node-rpc-tests: | |
runs-on: ubuntu-latest | |
needs: build | |
steps: | |
- name: Download binaries | |
uses: actions/download-artifact@v3 | |
with: | |
name: defi-bins | |
- name: Download shell commands | |
uses: actions/download-artifact@v3 | |
with: | |
name: sync | |
- name: Setup permissions | |
run: chmod uog+x ./defid ./defi-cli ./main.sh | |
- name: Setup test fixtures | |
run: ./main.sh | |
- name: Setup Go | |
uses: actions/setup-go@v3 | |
with: | |
go-version: '^1.17.0' | |
- name: Setup go-ethlibs test suites | |
uses: actions/checkout@v4 | |
with: | |
repository: 'DeFiCh/go-ethlibs' | |
- name: Run EVM RPC tests | |
run: go test -v ./node/rpc_meta_test.go |