forked from MystenLabs/sui
-
Notifications
You must be signed in to change notification settings - Fork 0
35 lines (35 loc) · 977 Bytes
/
ts-sdk.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
name: TypeScript SDK PR checks
on: pull_request
jobs:
diff:
runs-on: [ubuntu-latest]
outputs:
isTypescriptSDK: ${{ steps.diff.outputs.isTypescriptSDK }}
steps:
- uses: actions/checkout@v3
- name: Detect Changes
uses: "./.github/actions/diffs"
id: diff
client_checks:
name: Test & Build
needs: diff
if: needs.diff.outputs.isTypescriptSDK == 'true'
runs-on: [ubuntu-latest]
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Install Nodejs
uses: actions/setup-node@v3
with:
node-version: "16"
cache: "yarn"
cache-dependency-path: ./sdk/typescript/yarn.lock
- name: Install dependencies
working-directory: ./sdk/typescript
run: yarn install
- name: Test
working-directory: ./sdk/typescript
run: yarn test
- name: Build
working-directory: ./sdk/typescript
run: yarn build