-
Notifications
You must be signed in to change notification settings - Fork 16
76 lines (74 loc) · 2.12 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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
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:
- name: Fix permissions
continue-on-error: true
run: |
echo ${{secrets.TESTING_LAPTOP_PASSWORD}} | sudo -S chmod 777 -R ~/runners/${{ runner.name }}/_work/connect/connect
- 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
- name: Setup Infra
working-directory: ./infra
run: |
docker-compose down
rm -rf .infra/target
docker-compose up -d --no-deps --force-recreate --remove-orphans
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
default: true
override: true
- name: install packages
if: steps.cache-node-modules.outputs.cache-hit != 'true'
run: |
pnpm install
working-directory: ./sdk
- name: Wait for Infra
continue-on-error: true
timeout-minutes: 2
working-directory: ./infra
run: |
( docker-compose logs --follow & ) | grep -q "database system is ready to accept connections"
- name: Prepare db tables
run: |
cargo run --bin tables_migration
- name: run cargo test
run: |
cargo tests-with-db
cargo run --bin nightly-connect-server &
- name: test base local
run: |
pnpm test:ci
working-directory: ./sdk/packages/base
- name: test solana local
run: |
pnpm test:ci
working-directory: ./sdk/packages/solana
- name: test sui local
run: |
pnpm test:ci
working-directory: ./sdk/packages/sui
- name: Clean target
working-directory: ./infra
run: |
docker-compose down
rm -rf .infra/target