action.yaml 1.5 KB

12345678910111213141516171819202122232425262728293031323334
  1. name: "Setup ts"
  2. description: "Setup ts"
  3. runs:
  4. using: "composite"
  5. steps:
  6. - uses: actions/setup-node@v3
  7. with:
  8. node-version: ${{ env.NODE_VERSION }}
  9. - uses: actions/cache@v3
  10. name: Cache Typescript node_modules
  11. id: cache-typescript-node-modules
  12. with:
  13. path: |
  14. ./ts/node_modules/
  15. key: solana-${{ runner.os }}-v0000-${{ env.NODE_VERSION }}-${{ hashFiles('./ts/**/yarn.lock') }}
  16. - uses: actions/cache@v3
  17. name: Cache Typescript Dist
  18. id: cache-typescript-dist
  19. with:
  20. path: |
  21. ./ts/dist/
  22. key: solana-${{ runner.os }}-v0000-${{ env.NODE_VERSION }}-${{ hashFiles('./ts/**/*.ts') }}
  23. - run: cd ts/packages/borsh && yarn --frozen-lockfile && yarn build && yarn link && cd ../../../
  24. shell: bash
  25. - run: cd ts/packages/anchor && yarn --frozen-lockfile && yarn build:node && yarn link && cd ../../../
  26. shell: bash
  27. - run: cd ts/packages/spl-associated-token-account && yarn --frozen-lockfile && yarn build:node && yarn link && cd ../../../
  28. shell: bash
  29. - run: cd ts/packages/spl-token && yarn --frozen-lockfile && yarn build:node && yarn link && cd ../../../
  30. shell: bash
  31. - run: cd examples/tutorial && yarn link @coral-xyz/anchor @coral-xyz/borsh && yarn --frozen-lockfile && cd ../../
  32. shell: bash
  33. - run: cd tests && yarn link @coral-xyz/anchor @coral-xyz/borsh @coral-xyz/spl-associated-token-account @coral-xyz/spl-token && yarn --frozen-lockfile && cd ..
  34. shell: bash