-
Notifications
You must be signed in to change notification settings - Fork 11
40 lines (30 loc) · 993 Bytes
/
test-js.yaml
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
name: Javascript Tests
on:
pull_request:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
test-js:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup tools
uses: ./.github/actions/setup-tools
with:
install-sui: 'true'
install-nodejs: 'true'
- name: Build TS and Move Modules
run: npm run build
- name: Initialize Sui Config
run: echo -e "y\n\n1" | sui client envs
- name: Run Localnet
run: nohup sh -c "RUST_LOG="off,sui_node=info" sui start --with-faucet --force-regenesis" > nohup.out 2> nohup.err < /dev/null &
- name: Sleep for 30 seconds
run: sleep 30s
shell: bash
- name: Switch to localnet
run: sui client new-env --alias localnet --rpc http://0.0.0.0:9000 && sui client switch --env localnet
- name: Test
run: npm run test-js