test: add integration tests #15
Workflow file for this run
This file contains hidden or 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: Crates | |
| on: | |
| push: | |
| branches: [main, next-contracts, next-bindings] | |
| pull_request: | |
| workflow_dispatch: | |
| jobs: | |
| tests: | |
| name: Crates Tests | |
| runs-on: macos-latest | |
| env: | |
| ALCHEMY_API_KEY: ${{ secrets.ALCHEMY_API_KEY }} | |
| QUEUE_BASE_URL: ${{ secrets.QUEUE_BASE_URL }} | |
| QUEUE_AUTH_TOKEN: ${{ secrets.QUEUE_AUTH_TOKEN }} | |
| RISC0_SKIP_BUILD_KERNELS: true | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v5 | |
| - name: Install just | |
| uses: extractions/setup-just@v3 | |
| - name: Install Rust | |
| uses: dtolnay/rust-toolchain@stable | |
| with: | |
| components: rustfmt, clippy | |
| - name: Show Rust version | |
| run: rustc --version | |
| - name: Install Foundry | |
| uses: foundry-rs/foundry-toolchain@v1 | |
| with: | |
| version: v1.7.1 | |
| - name: Show Foundry version | |
| run: forge --version | |
| - name: Restore dependencies cache | |
| uses: actions/cache@v4 | |
| with: | |
| path: | | |
| target | |
| key: rust-${{ runner.os }}-${{ hashFiles('Cargo.lock') }} | |
| restore-keys: rust- | |
| - name: Run rustfmt | |
| run: just crates-fmt-check | |
| - name: Build | |
| run: just crates-build | |
| - name: Lint | |
| run: just crates-lint | |
| - name: Run Tests | |
| run: just crates-test |