2021-11-27 08:57:43 -08:00
|
|
|
name: "Setup ts"
|
|
|
|
description: "Setup ts"
|
|
|
|
runs:
|
|
|
|
using: "composite"
|
|
|
|
steps:
|
|
|
|
- uses: actions/setup-node@v2
|
|
|
|
with:
|
|
|
|
node-version: ${{ env.NODE_VERSION }}
|
|
|
|
- uses: actions/cache@v2
|
|
|
|
name: Cache Typescript node_modules
|
2021-11-28 11:10:39 -08:00
|
|
|
id: cache-typescript-node-modules
|
2021-11-27 08:57:43 -08:00
|
|
|
with:
|
|
|
|
path: |
|
2021-11-28 11:10:39 -08:00
|
|
|
./ts/node_modules/
|
|
|
|
key: solana-${{ runner.os }}-v0000-${{ env.NODE_VERSION }}-${{ hashFiles('./ts/**/yarn.lock') }}
|
|
|
|
- uses: actions/cache@v2
|
|
|
|
name: Cache Typescript Dist
|
|
|
|
id: cache-typescript-dist
|
|
|
|
with:
|
|
|
|
path: |
|
|
|
|
./ts/dist/
|
|
|
|
key: solana-${{ runner.os }}-v0000-${{ env.NODE_VERSION }}-${{ hashFiles('./ts/**/*.ts') }}
|
|
|
|
- run: cd ts && yarn && yarn build:node && yarn link && cd ../
|
2021-11-27 08:57:43 -08:00
|
|
|
shell: bash
|
|
|
|
- run: cd examples/tutorial && yarn link @project-serum/anchor && yarn && cd ../../
|
|
|
|
shell: bash
|
|
|
|
- run: cd tests && yarn link @project-serum/anchor && yarn && cd ..
|
|
|
|
shell: bash
|
2021-11-28 11:10:39 -08:00
|
|
|
|