Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add test-precompiles first test iteration #205

Draft
wants to merge 16 commits into
base: main
Choose a base branch
from
21 changes: 21 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -61,3 +61,24 @@ jobs:

- name: "Build precompiles"
run: make build-precompiles
test-precompiles:
name: "Run tests for precompiles"
runs-on: ubuntu-latest
steps:
- name: "Checkout"
uses: actions/checkout@v3

- name: Setup rust nightly
uses: dtolnay/rust-toolchain@nightly

- name: Setup rust cache
uses: Swatinem/rust-cache@v2

- name: Setup project
run: make setup
- name: Build and run test node
run: make build-test-node run

- name: Run tests
working-directory: tests
run: cargo test
3 changes: 3 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@ copy-precompiles:
build-precompiles: copy-precompiles
cd submodules/era-test-node && make build-precompiles

build-test-node:
cd submodules/era-test-node && cargo +nightly build

run: build-precompiles
cd submodules/era-test-node && cargo +nightly run -- --show-calls=all --resolve-hashes --show-gas-details=all run

Expand Down
Loading