action.yaml 1.4 KB

1234567891011121314151617181920212223242526272829303132
  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/anchor && yarn --frozen-lockfile && yarn build:node && yarn link && cd ../../../
  24. shell: bash
  25. - run: cd ts/packages/spl-associated-token-account && yarn --frozen-lockfile && yarn build:node && yarn link && cd ../../../
  26. shell: bash
  27. - run: cd ts/packages/spl-token && yarn --frozen-lockfile && yarn build:node && yarn link && cd ../../../
  28. shell: bash
  29. - run: cd examples/tutorial && yarn link @project-serum/anchor && yarn --frozen-lockfile && cd ../../
  30. shell: bash
  31. - run: cd tests && yarn link @project-serum/anchor && yarn link @project-serum/spl-associated-token-account && yarn link @project-serum/spl-token && yarn --frozen-lockfile && cd ..
  32. shell: bash