forked from MystenLabs/sui
-
Notifications
You must be signed in to change notification settings - Fork 0
66 lines (66 loc) · 1.86 KB
/
explorer-client-prs.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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
name: Explorer Client PR checks
on: pull_request
jobs:
diff:
runs-on: [ubuntu-latest]
outputs:
isClient: ${{ steps.diff.outputs.isExplorerClient }}
steps:
- uses: actions/checkout@v3
- name: Detect Changes
uses: "./.github/actions/pnpm-diffs"
id: diff
client_checks:
name: Lint, Test & Build
needs: diff
if: needs.diff.outputs.isClient == 'true'
runs-on: [ubuntu-latest]
steps:
- name: Checkout
uses: actions/checkout@v3
- uses: pnpm/[email protected]
with:
version: 7
- name: Install Nodejs
uses: actions/setup-node@v3
with:
node-version: "16"
cache: "pnpm"
- name: Install dependencies
run: pnpm install --frozen-lockfile
- name: Build SDK
run: pnpm --filter @mysten/sui.js build
- name: Lint
run: pnpm --filter sui-explorer lint
- name: Unit Tests
run: pnpm --filter sui-explorer test:unit
- name: Build
run: pnpm --filter sui-explorer build
end_to_end:
name: End-to-end tests
needs: diff
if: needs.diff.outputs.isClient == 'true'
runs-on: [ubuntu-latest]
steps:
- name: Checkout
uses: actions/checkout@v3
- uses: pnpm/[email protected]
with:
version: 7
- name: Install Nodejs
uses: actions/setup-node@v3
with:
node-version: "16"
cache: "pnpm"
- name: Install dependencies
run: pnpm install --frozen-lockfile
- name: Build TS sdk
run: pnpm --filter @mysten/sui.js build
- name: Install Cypress
run: pnpm --filter sui-explorer exec cypress install
- name: Run e2e tests
uses: cypress-io/github-action@v4
with:
install: false
start: pnpm dev:static
working-directory: ./explorer/client