-
Notifications
You must be signed in to change notification settings - Fork 6
67 lines (58 loc) · 1.71 KB
/
tests.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
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
name: Tests
# Tests runs unit tests over the entire DesmJS repository.
# This workflow is run on every pull request and push to main.
on:
pull_request:
push:
branches:
- main
jobs:
tests:
name: Tests
runs-on: ubuntu-latest
steps:
- name: Checkout 🛎️
uses: actions/checkout@v3
- name: Compute diff 📜
uses: technote-space/[email protected]
id: git_diff
with:
PATTERNS: |
**/*.+(js|ts|tsx)
FILES: |
package.json
yarn.lock
- name: Setup Node 👷
if: env.GIT_DIFF
uses: actions/setup-node@v3
with:
node-version: 16
- name: Setup Protoc 👷
uses: arduino/setup-protoc@v2
with:
version: "23.4"
repo-token: ${{ secrets.GITHUB_TOKEN }}
- name: Install 🔨
if: env.GIT_DIFF
run: yarn install --immutable
- name: Build 🔨
if: env.GIT_DIFF
run: yarn build
- name: Run core unit tests 🧪
if: env.GIT_DIFF
run: yarn workspace @desmoslabs/desmjs unit-tests
- name: Run core integration tests 🧪
if: env.GIT_DIFF
run: |
scripts/get_desmos_bin.sh 6.0.0
scripts/spawn_test_chain.sh -b
sleep 10
scripts/setup_chain.sh
yarn workspace @desmoslabs/desmjs integration-tests
- name: Run WalletConnect v2 unit tests 🧪
env:
WC_PROJECT_ID: ${{secrets.WC_PROJECT_ID}}
if: env.GIT_DIFF
run: |
echo "WC_PROJECT_ID=$WC_PROJECT_ID" >> ./packages/walletconnect-v2/.test.env
yarn workspace @desmoslabs/desmjs-walletconnect-v2 unit-tests