Skip to content

Commit

Permalink
feat: integrate koba & migrate e2e tests to alloy (#80)
Browse files Browse the repository at this point in the history
Co-authored-by: Alisander Qoshqosh <[email protected]>
  • Loading branch information
alexfertel and qalisander authored Jun 1, 2024
1 parent 5f3915e commit 71e7782
Show file tree
Hide file tree
Showing 48 changed files with 3,043 additions and 2,704 deletions.
15 changes: 10 additions & 5 deletions .github/workflows/e2e-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,9 @@ name: e2e-tests
#
# It roughly follows these steps:
# - A local `nitro-testnode` gets spun up.
# - The test suite runs
# Test contract deployments and test user funding happen per test.
# - The test suite runs.
#
# Contract deployments and account funding happen on a per-test basis.
permissions:
contents: read
on:
Expand Down Expand Up @@ -52,9 +53,13 @@ jobs:
run: RUSTFLAGS="-C link-args=-rdynamic" cargo install [email protected]

- name: setup nitro node
run: ./e2e-tests/nitro-testnode.sh -d -i

run: ./scripts/nitro-testnode.sh -d -i
- name: install solc
run: |
curl -LO https://github.com/ethereum/solidity/releases/download/v0.8.21/solc-static-linux
sudo mv solc-static-linux /usr/bin/solc
sudo chmod a+x /usr/bin/solc
- name: run integration tests
run: |
export NIGHTLY_TOOLCHAIN=${{steps.toolchain.outputs.name}}
./e2e-tests/test.sh
./scripts/e2e-tests.sh
9 changes: 5 additions & 4 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,10 +50,10 @@ jobs:
run: cargo generate-lockfile
# https://twitter.com/jonhoo/status/1571290371124260865
- name: cargo test --locked
run: cargo test --locked --all-features --all-targets
run: cargo test --locked --features std --all-targets
# https://github.com/rust-lang/cargo/issues/6669
- name: cargo test --doc
run: cargo test --locked --all-features --doc
run: cargo test --locked --features std --doc
os-check:
# Run cargo test on MacOS and Windows.
runs-on: ${{ matrix.os }}
Expand All @@ -74,7 +74,7 @@ jobs:
if: hashFiles('Cargo.lock') == ''
run: cargo generate-lockfile
- name: cargo test
run: cargo test --locked --all-features --all-targets
run: cargo test --locked --features std --all-targets
coverage:
# Use llvm-cov to build and collect coverage and outputs in a format that
# is compatible with codecov.io.
Expand Down Expand Up @@ -113,7 +113,8 @@ jobs:
if: hashFiles('Cargo.lock') == ''
run: cargo generate-lockfile
- name: cargo llvm-cov
run: cargo llvm-cov --locked --all-features --lcov --output-path lcov.info
# FIXME: Include e2e tests in coverage.
run: cargo llvm-cov --locked --features std --lcov --output-path lcov.info
- name: Record Rust version
run: echo "RUST=$(rustc --version)" >> "$GITHUB_ENV"
- name: Upload to codecov.io
Expand Down
Loading

0 comments on commit 71e7782

Please sign in to comment.