forked from tari-project/tari
-
Notifications
You must be signed in to change notification settings - Fork 1
92 lines (90 loc) · 2.76 KB
/
long_running.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
83
84
85
86
87
88
89
90
91
92
# Runs weekly (saturday noon)
name: Long running integration tests
on:
schedule:
- cron: "0 12 * * 6"
env:
toolchain: nightly-2021-11-20
jobs:
long-running:
name: Run long-running critical cucumber tests
runs-on: ubuntu-18.04
steps:
- name: checkout
uses: actions/checkout@v2
- name: toolchain
uses: actions-rs/toolchain@v1
with:
toolchain: ${{ env.toolchain }}
profile: minimal
override: true
- uses: Swatinem/rust-cache@v1
- name: ubuntu dependencies
run: |
sudo apt-get update && \
sudo apt-get -y install \
openssl \
libssl-dev \
pkg-config \
libsqlite3-dev \
clang-10 \
git \
cmake \
libc++-dev \
libc++abi-dev \
libprotobuf-dev \
protobuf-compiler \
libncurses5-dev \
libncursesw5-dev \
zip \
build-essential \
libgtk-3-dev \
libwebkit2gtk-4.0-dev \
libsoup2.4-dev \
curl \
wget \
libappindicator3-dev \
patchelf \
librsvg2-dev
- name: node -v
run: node -v
- name: build base node
uses: actions-rs/cargo@v1
with:
command: build
args: --release --bin tari_base_node
- name: build console wallet
uses: actions-rs/cargo@v1
with:
command: build
args: --release --bin tari_console_wallet
- name: build merge mining proxy
uses: actions-rs/cargo@v1
with:
command: build
args: --release --bin tari_merge_mining_proxy
- name: build miner
uses: actions-rs/cargo@v1
with:
command: build
args: --release --bin tari_miner
- name: build validator node
uses: actions-rs/cargo@v1
with:
command: build
args: --release --bin tari_validator_node
- name: npm ci
run: cd integration_tests && npm ci && cd node_modules/wallet-grpc-client && npm ci
- name: Run integration tests
run: cd integration_tests && mkdir -p cucumber_output && node_modules/.bin/cucumber-js --profile "long-running" --tags "not @wallet-ffi" --format json:cucumber_output/tests.cucumber --exit --retry 2 --retry-tag-filter "@flaky and not @broken"
- name: Generate report
if: always()
run: cd integration_tests && node ./generate_report.js
- name: Store test results
uses: actions/upload-artifact@v3
if: always()
with:
name: test results
path: |
integration_tests/cucumber_output
integration_tests/temp/reports