-
Notifications
You must be signed in to change notification settings - Fork 9
75 lines (72 loc) · 2.65 KB
/
test_tube.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
name: Test Tube
on:
pull_request:
branches:
- main
paths:
- 'smart-contracts/contracts/dex-router-osmosis/Cargo.toml'
- 'smart-contracts/contracts/dex-router-osmosis/**.rs'
- 'smart-contracts/contracts/cl-vault/Cargo.toml'
- 'smart-contracts/contracts/cl-vault/**.rs'
- 'smart-contracts/contracts/merkle-incentives/Cargo.toml'
- 'smart-contracts/contracts/merkle-incentives/**.rs'
- '.github/workflows/dex_router_osmosis.yml'
- '.github/workflows/cl_vault.yml'
- '.github/workflows/merkle_incentives.yml'
- '.github/workflows/test_tube.yml'
push:
branches:
- main
paths:
- 'smart-contracts/contracts/dex-router-osmosis/Cargo.toml'
- 'smart-contracts/contracts/dex-router-osmosis/**.rs'
- 'smart-contracts/contracts/cl-vault/Cargo.toml'
- 'smart-contracts/contracts/cl-vault/**.rs'
- 'smart-contracts/contracts/merkle-incentives/Cargo.toml'
- 'smart-contracts/contracts/merkle-incentives/**.rs'
- '.github/workflows/dex_router_osmosis.yml'
- '.github/workflows/cl_vault.yml'
- '.github/workflows/merkle_incentives.yml'
- '.github/workflows/test_tube.yml'
workflow_dispatch:
jobs:
test-tube:
runs-on: ubuntu-latest
steps:
- name: Check out repository code
uses: actions/checkout@v3
- name: Install Rust
uses: dtolnay/rust-toolchain@stable
- name: Restore dependencies
uses: actions/cache/restore@v4
with:
path: |
~/.cargo
~/go
**/target
key: ${{ runner.os }}-cargo-$GITHUB_SHA
restore-keys: ${{ runner.os }}-cargo
- name: Build merkle-incentives
run: cargo test-tube-build
working-directory: smart-contracts/contracts/merkle-incentives
- name: Test merkle-incentives
run: cargo test-tube
working-directory: smart-contracts/contracts/merkle-incentives
- name: Build dex-router-osmosis
run: cargo test-tube-build
working-directory: smart-contracts/contracts/dex-router-osmosis
- name: Test dex-router-osmosis
run: cargo test-tube
working-directory: smart-contracts/contracts/dex-router-osmosis
- name: Build cl-vault
run: cargo test-tube-build
working-directory: smart-contracts/contracts/cl-vault
- name: Test cl-vault
run: cargo test-tube
working-directory: smart-contracts/contracts/cl-vault
- name: Run prop-test
if: github.ref == 'refs/heads/main'
run: cargo prop-test
env:
PROPTEST_CASES: 10
working-directory: smart-contracts/contracts/cl-vault