refactor: forester: add default tree / epoch #7001
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: rust | |
| on: | |
| push: | |
| branches: [main] | |
| paths: | |
| - "program-libs/**" | |
| - "**/Cargo.*" | |
| - ".cargo/**" | |
| - "prover/client/**" | |
| - ".github/workflows/rust.yml" | |
| pull_request: | |
| branches: ["*"] | |
| paths: | |
| - "program-libs/**" | |
| - "**/Cargo.*" | |
| - "prover/client/**" | |
| - ".github/workflows/rust.yml" | |
| types: [opened, synchronize, reopened, ready_for_review] | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| env: | |
| RUST_MIN_STACK: 8388608 | |
| RUSTFLAGS: "-D warnings" | |
| jobs: | |
| test: | |
| if: github.event.pull_request.draft == false | |
| runs-on: warp-ubuntu-latest-x64-4x | |
| strategy: | |
| matrix: | |
| group: | |
| - name: batched-merkle-tree-simulate | |
| packages: light-batched-merkle-tree batched-merkle-tree-test | |
| test_cmd: | | |
| cargo test -p light-batched-merkle-tree --features test-only | |
| RUST_LOG=light_prover_client=debug cargo test -p batched-merkle-tree-test -- --test test_simulate_transactions | |
| - name: program-libs-fast | |
| packages: | |
| aligned-sized light-hasher light-compressed-account light-account-checks \ | |
| light-verifier light-merkle-tree-metadata light-zero-copy light-hash-set light-concurrent-merkle-tree \ | |
| light-array-map | |
| test_cmd: | | |
| cargo test -p light-macros | |
| cargo test -p aligned-sized | |
| cargo test -p light-array-map --all-features | |
| cargo test -p light-hasher --all-features | |
| cargo test -p light-compressed-account --all-features | |
| cargo test -p light-account-checks --all-features | |
| cargo test -p light-verifier --all-features | |
| cargo test -p light-merkle-tree-metadata --all-features | |
| cargo test -p light-zero-copy --features "std, mut, derive" | |
| cargo test -p light-zero-copy-derive --all-features | |
| cargo test -p zero-copy-derive-test | |
| cargo test -p light-hash-set --all-features | |
| cargo test -p batched-merkle-tree-test -- --skip test_simulate_transactions --skip test_e2e | |
| cargo test -p light-concurrent-merkle-tree | |
| cargo test -p light-ctoken-interface --features poseidon | |
| cargo test -p light-compressible --all-features | |
| - name: program-libs-slow | |
| packages: light-bloom-filter light-indexed-merkle-tree batched-merkle-tree-test | |
| test_cmd: | | |
| cargo test -p light-bloom-filter --all-features | |
| cargo test -p light-indexed-merkle-tree --all-features | |
| cargo test -p batched-merkle-tree-test -- --test test_e2e | |
| name: Test ${{ matrix.group.name }} | |
| services: | |
| redis: | |
| image: redis:8.0.1 | |
| ports: | |
| - 6379:6379 | |
| options: >- | |
| --health-cmd "redis-cli ping" | |
| --health-interval 10s | |
| --health-timeout 5s | |
| --health-retries 5 | |
| env: | |
| REDIS_URL: redis://localhost:6379 | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Setup and build | |
| uses: ./.github/actions/setup-and-build | |
| with: | |
| skip-components: "redis,disk-cleanup,go" | |
| cache-key: "rust" | |
| - name: Build CLI | |
| run: | | |
| npx nx build @lightprotocol/zk-compression-cli | |
| - name: Run tests for ${{ matrix.group.name }} | |
| run: | | |
| ${{ matrix.group.test_cmd }} |