-
Notifications
You must be signed in to change notification settings - Fork 16
61 lines (58 loc) · 1.49 KB
/
connect-test-local.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
name: connect-test-local.yml
on:
push:
branches:
- master
- main
pull_request:
types: [opened, synchronize, reopened]
jobs:
install:
timeout-minutes: 10
runs-on: [testing]
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: '16'
- uses: pnpm/action-setup@v2
name: Install pnpm
continue-on-error: true
id: pnpm-install
with:
version: 8
run_install: false
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
- uses: actions/cache@v2
name: Cache Cargo registry + index
id: cache-rust
with:
path: |
~/.cargo/bin/
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
key: cargo-${{ runner.os }}-v0000-${{ hashFiles('**/Cargo.lock') }}
- name: install packages
if: steps.cache-node-modules.outputs.cache-hit != 'true'
run: |
pnpm install
working-directory: ./sdk
- name: run cargo test
run: |
cargo test
cargo run &
- name: test base local
run: |
pnpm test:ci
working-directory: ./sdk/apps/base
- name: test solana local
run: |
pnpm test:ci
working-directory: ./sdk/apps/solana
- name: test sui local
run: |
pnpm test:ci
working-directory: ./sdk/apps/sui