diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index e37456fac..ceb7b67d0 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -89,3 +89,31 @@ jobs: cache-on-failure: true - name: cargo hack run: cargo hack check + + 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-07-23 + + - 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