Skip to content

feat: add option to pass custom photon db url to cli/test-validator (… #3306

feat: add option to pass custom photon db url to cli/test-validator (…

feat: add option to pass custom photon db url to cli/test-validator (… #3306

on:
push:
branches:
- main
pull_request:
branches:
- main
types:
- opened
- synchronize
- ready_for_review
- reopened
name: light-sdk-tests
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
light-sdk-tests:
name: light-sdk-tests
if: github.event.pull_request.draft == false
runs-on: ubuntu-latest
strategy:
matrix:
include:
- name: sdk-tests-light-rpc-cli
sub-tests: '[
"@lightprotocol/circuit-lib.js:test",
"@lightprotocol/prover.js:test",
"@lightprotocol/cli:test",
]'
steps:
- name: Log in to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Checkout sources
uses: actions/checkout@v4
- name: Setup and build
uses: ./.github/actions/setup-and-build
- name: ${{ matrix.name }}
run: |
source ./scripts/devenv.sh
IFS=', ' read -r -a sub_tests <<< "${{ join(fromJSON(matrix['sub-tests']), ', ') }}"
for subtest in "${sub_tests[@]}"
do
npx nx run "$subtest"
done
- name: Log out
run: docker logout