refactor: forester: add default tree / epoch #914
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
| on: | |
| push: | |
| branches: | |
| - main | |
| paths: | |
| - "program-libs/**" | |
| - "programs/**" | |
| - "sdk-tests/**" | |
| - "sdk-libs/**" | |
| pull_request: | |
| branches: | |
| - "*" | |
| paths: | |
| - "programs/**" | |
| - "program-libs/**" | |
| - "sdk-tests/**" | |
| - "sdk-libs/**" | |
| types: [opened, synchronize, reopened, ready_for_review] | |
| name: examples-tests | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| system-programs: | |
| name: system-programs | |
| if: github.event.pull_request.draft == false | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 60 | |
| 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 | |
| strategy: | |
| matrix: | |
| include: | |
| - program: native | |
| sub-tests: '["cargo-test-sbf -p sdk-native-test", "cargo-test-sbf -p sdk-v1-native-test", "cargo-test-sbf -p sdk-ctoken-test", "cargo-test-sbf -p client-test"]' | |
| - program: anchor & pinocchio | |
| sub-tests: '["cargo-test-sbf -p sdk-anchor-test", "cargo-test-sbf -p sdk-compressible-test", "cargo-test-sbf -p csdk-anchor-derived-test", "cargo-test-sbf -p csdk-anchor-full-derived-test", "cargo-test-sbf -p sdk-pinocchio-v1-test", "cargo-test-sbf -p sdk-pinocchio-v2-test", "cargo-test-sbf -p pinocchio-nostd-test"]' | |
| - program: token test | |
| sub-tests: '["cargo-test-sbf -p sdk-token-test"]' | |
| - program: sdk-libs | |
| packages: light-sdk-macros light-sdk light-program-test light-client light-ctoken-types light-ctoken-sdk | |
| test_cmd: | | |
| cargo test -p light-sdk-macros | |
| cargo test -p light-sdk-macros --all-features | |
| cargo test -p light-sdk | |
| cargo test -p light-sdk --all-features | |
| cargo test -p light-program-test | |
| cargo test -p light-client | |
| cargo test -p light-sparse-merkle-tree | |
| cargo test -p light-ctoken-types | |
| cargo test -p light-ctoken-sdk --all-features | |
| steps: | |
| - name: Checkout sources | |
| 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 sub-tests for ${{ matrix.program }} | |
| if: matrix.sub-tests != null | |
| run: | | |
| IFS=',' read -r -a sub_tests <<< "${{ join(fromJSON(matrix.sub-tests), ', ') }}" | |
| for subtest in "${sub_tests[@]}" | |
| do | |
| echo "$subtest" | |
| eval "RUSTFLAGS=\"-D warnings\" $subtest" | |
| done | |
| - name: Run tests for ${{ matrix.program }} | |
| if: matrix.test_cmd != null | |
| run: | | |
| ${{ matrix.test_cmd }} |