-
Notifications
You must be signed in to change notification settings - Fork 12
114 lines (89 loc) · 3.51 KB
/
main.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
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
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
name: "Main"
on:
pull_request:
branches:
- master
jobs:
api-tests:
name: "API tests"
timeout-minutes: 30
runs-on: ubuntu-latest
container:
image: golang:1.21.7-bullseye
steps:
- name: Install node
uses: actions/setup-node@v2
with:
node-version: "20.0.0"
- name: Install yarn
run: npm install -g yarn
- name: Checkout repo
uses: actions/checkout@main
with:
submodules: "true"
- name: Install other dependencies
run: |
rm /bin/sh && ln -s /bin/bash /bin/sh
cat /etc/os-release
apt-get update
apt-get -y install hwloc jq pkg-config bzr ocl-icd-opencl-dev
apt install zsh -y
make install_solc_linux
yarn install
ls -1 /usr/lib/*/libhwloc.so.* | head -n 1 | xargs -n1 -I {} ln -s {} /usr/lib/libhwloc.so
- name: Install Rust
uses: actions-rs/toolchain@v1
with:
toolchain: nightly
override: true
- name: Build Contracts
run: make build
- name: Clean up disk space
run: |
df -h
rm -rf /usr/share/dotnet
rm -rf /opt/ghc
rm -rf "/usr/local/share/boost"
rm -rf "$AGENT_TOOLSDIRECTORY"
rm -rf /usr/local/lib/android
rm -rf /opt/hostedtoolcache
rm -rf /__t/CodeQL
df -h
du -h / | sort -h |tail -n 50
- name: Compilation
run: |
cd testing
rustup target add wasm32-unknown-unknown
cargo build
- name: Check disk space
run: |
df -h
du -h / | sort -h |tail -n 50
- name: Test-Account
run: cd testing && cargo test account -- --nocapture
- name: Test-Address
run: cd testing && cargo test address -- --nocapture
- name: Test-Send
run: cd testing && cargo test send_test -- --nocapture
- name: Test-BigInts
run: cd testing && cargo test bigints_test -- --nocapture
- name: Test-Leb128
run: cd testing && cargo test leb128 -- --nocapture
- name: Test-Deserialize
run: cd testing && cargo test deserialize_params_tests -- --nocapture
- name: Test-MarketCbor
run: cd testing && cargo test market_cbor_tests -- --nocapture
- name: Test-CborDecode
run: cd testing && cargo test cbor_decode_test -- --nocapture
- name: Test-FRC0042
run: cd testing && cargo run --example methodnum
- name: Test-VerifReg
run: cd testing && cargo test verifreg_test -- --nocapture
- name: Test-Power
run: cd testing && cargo test power_test -- --nocapture
- name: Test-Miner
run: cd testing && cargo test miner_test -- --nocapture
- name: Test-Market
run: cd testing && cargo test market_test -- --nocapture
- name: Test-SolcVersions
run: chmod +x ./testing/smoke_tests.sh && ./testing/smoke_tests.sh