Skip to content

update readme's

update readme's #241

name: TypeScript
on:
push:
branches:
- main
pull_request:
types: [opened, synchronize, reopened]
branches:
- main
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
env:
SOLANA_CLI_VERSION: "2.3.11"
NODE_VERSION: "22"
jobs:
typescript-tests:
name: TypeScript Tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup environment
uses: ./.github/actions/setup
with:
example: typescript-client
solana-cli-version: ${{ env.SOLANA_CLI_VERSION }}
photon-indexer: "true"
- name: Install dependencies
working-directory: typescript-client
run: npm install
- name: Start test validator
run: |
light test-validator &
for i in $(seq 1 60); do
curl -s http://127.0.0.1:8784/health && break
sleep 2
done
- name: Run actions
working-directory: typescript-client
run: npm run test:actions
- name: Run instructions
working-directory: typescript-client
run: npm run test:instructions