action.yaml 731 B

123456789101112131415161718192021
  1. name: "Setup ts"
  2. description: "Setup ts"
  3. runs:
  4. using: "composite"
  5. steps:
  6. - uses: actions/setup-node@v2
  7. with:
  8. node-version: ${{ env.NODE_VERSION }}
  9. - uses: actions/cache@v2
  10. name: Cache Typescript node_modules
  11. id: cache-typescript
  12. with:
  13. path: |
  14. ./ts/node_modules
  15. key: solana-${{ runner.os }}-v0000-${{ env.NODE_VERSION }}-${{ hashFiles('**/yarn.lock') }}
  16. - run: cd ts && yarn && yarn build && yarn link && cd ../
  17. shell: bash
  18. - run: cd examples/tutorial && yarn link @project-serum/anchor && yarn && cd ../../
  19. shell: bash
  20. - run: cd tests && yarn link @project-serum/anchor && yarn && cd ..
  21. shell: bash