Skip to content

Commit

Permalink
add smoke test
Browse files Browse the repository at this point in the history
  • Loading branch information
nbaztec committed Dec 15, 2023
1 parent 904f545 commit d63583b
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 10 deletions.
16 changes: 6 additions & 10 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -93,30 +93,26 @@ jobs:
smoke-test:
name: smoke-test
runs-on: ubuntu-22.04-github-hosted-16core
env:
TEST_REPO_DIR: test-repo


steps:
- name: Checkout code
uses: actions/checkout@v4
with:
path: ${{ env.TEST_REPO_DIR }}
ref: ${{ github.event.pull_request.head.sha }}

- name: Install Rust
uses: actions-rust-lang/setup-rust-toolchain@v1
with:
toolchain: nightly-2023-09-21

- uses: Swatinem/rust-cache@v2
with:
cache-on-failure: true

- name: Run smoke-test
env:
TEST_REPO: ${{ github.event.repository.name }}
TEST_REPO_DIR: "../${{ env.TEST_REPO_DIR }}"
RUST_BACKTRACE: full
run: |
git clone https://github.com/matter-labs/zkfoundry-smoke-test
cd zkfoundry-smoke-test
./smoke-test.sh
run: cd smoke-test && ./test.sh

cheatcodes:
name: cheatcode-test
Expand Down
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
[submodule "crates/era-cheatcodes/tests/lib/forge-std"]
path = crates/era-cheatcodes/tests/lib/forge-std
url = https://github.com/foundry-rs/forge-std
[submodule "smoke-test/lib/forge-std"]
path = smoke-test/lib/forge-std
url = https://github.com/foundry-rs/forge-std
3 changes: 3 additions & 0 deletions smoke-test/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
zkout/
solc-v*
*.log
1 change: 1 addition & 0 deletions smoke-test/lib/forge-std
Submodule forge-std added at 80a8f6

0 comments on commit d63583b

Please sign in to comment.