Revert "Add delegation instruction examples, delegate-transfer to pay… #238
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: 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 |