|
@@ -8,14 +8,22 @@ runs:
|
|
node-version: ${{ env.NODE_VERSION }}
|
|
node-version: ${{ env.NODE_VERSION }}
|
|
- uses: actions/cache@v2
|
|
- uses: actions/cache@v2
|
|
name: Cache Typescript node_modules
|
|
name: Cache Typescript node_modules
|
|
- id: cache-typescript
|
|
|
|
|
|
+ id: cache-typescript-node-modules
|
|
with:
|
|
with:
|
|
path: |
|
|
path: |
|
|
- ./ts/node_modules
|
|
|
|
- key: solana-${{ runner.os }}-v0000-${{ env.NODE_VERSION }}-${{ hashFiles('**/yarn.lock') }}
|
|
|
|
- - run: cd ts && yarn && yarn build && yarn link && cd ../
|
|
|
|
|
|
+ ./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 ../
|
|
shell: bash
|
|
shell: bash
|
|
- run: cd examples/tutorial && yarn link @project-serum/anchor && yarn && cd ../../
|
|
- run: cd examples/tutorial && yarn link @project-serum/anchor && yarn && cd ../../
|
|
shell: bash
|
|
shell: bash
|
|
- run: cd tests && yarn link @project-serum/anchor && yarn && cd ..
|
|
- run: cd tests && yarn link @project-serum/anchor && yarn && cd ..
|
|
shell: bash
|
|
shell: bash
|
|
|
|
+
|