forked from iotaledger/iota-sdk
-
Notifications
You must be signed in to change notification settings - Fork 0
82 lines (69 loc) · 1.98 KB
/
private-tangle-tests.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
77
78
79
80
81
82
name: Build and run specific tests on a private tangle
on:
push:
branches: [develop, staging]
paths:
- ".cargo/config.toml"
- ".github/workflows/private-tangle-tests.yml"
- ".github/actions/**"
- "**.rs"
- "**/tests/**"
- "**/test/**"
- "**Cargo.toml"
- "**Cargo.lock"
- "!cli/**" # Exclude CLI
pull_request:
branches: [develop, staging]
paths:
- ".cargo/config.toml"
- ".github/workflows/private-tangle-tests.yml"
- ".github/actions/**"
- "**.rs"
- "**/tests/**"
- "**/test/**"
- "**Cargo.toml"
- "**Cargo.lock"
- "!cli/**" # Exclude CLI
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
env:
CARGO_INCREMENTAL: 0
jobs:
crate:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest]
steps:
- uses: actions/checkout@v3
- name: Set up Rust
uses: ./.github/actions/setup-rust
- name: Install required packages
run: |
sudo apt-get update
sudo apt-get install libudev-dev libusb-1.0-0-dev
- name: Install Nextest
uses: taiki-e/install-action@nextest
- name: Cache dependencies
uses: Swatinem/rust-cache@v2
- name: Start Sandbox
uses: 'iotaledger/iota-sandbox/.github/actions/setup@add-action'
with:
branch: add-action
protocol_parameters: .github/workflows/protocol_parameters.json
milestone_interval: 1s
env:
COMPOSE_PROFILES: inx-faucet,inx-indexer,inx-mqtt
- name: Start ledger nano
uses: "./.github/actions/ledger-nano"
- name: Run tests
run: cargo ci-tangle-test
- name: Tear down Sandbox
if: always()
uses: 'iotaledger/iota-sandbox/.github/actions/tear-down@add-action'
with:
branch: add-action
env:
COMPOSE_PROFILES: inx-faucet,inx-indexer,inx-mqtt