Skip to content

feat(sdk): add approve/revoke delegation for light-token ATAs (#2351) #3008

feat(sdk): add approve/revoke delegation for light-token ATAs (#2351)

feat(sdk): add approve/revoke delegation for light-token ATAs (#2351) #3008

Workflow file for this run

on:
push:
branches:
- main
pull_request:
branches:
- "*"
types:
- opened
- synchronize
- reopened
- ready_for_review
name: cli-tests-v1
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
cli-v1:
name: cli-v1
if: github.event.pull_request.draft == false
runs-on: ubuntu-latest
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:
LIGHT_PROTOCOL_VERSION: V1
REDIS_URL: redis://localhost:6379
CI: true
steps:
- name: Checkout sources
uses: actions/checkout@v6
with:
submodules: true
- name: Setup and build
uses: ./.github/actions/setup-and-build
with:
skip-components: "redis,disk-cleanup,go"
cache-key: "js"
- name: Build stateless.js with V1
run: |
cd js/stateless.js
pnpm build:v1
- name: Build compressed-token with V1
run: |
cd js/compressed-token
pnpm build:v1
- name: Build CLI
run: |
just cli build
- name: Run CLI tests with V1
run: |
just cli test
- name: Display prover logs on failure
if: failure()
run: |
echo "=== Displaying prover logs ==="
find cli/test-ledger -name "*prover*.log" -type f -exec echo "=== Contents of {} ===" \; -exec cat {} \; -exec echo "=== End of {} ===" \; || echo "No prover logs found"