-
Notifications
You must be signed in to change notification settings - Fork 0
148 lines (135 loc) · 4.02 KB
/
Copy pathci.yml
File metadata and controls
148 lines (135 loc) · 4.02 KB
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
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
# Copyright (c) Aptos Labs
# SPDX-License-Identifier: Apache-2.0
name: CI
on:
pull_request:
branches:
- main
push:
branches:
- main
permissions:
contents: read
jobs:
build-rust:
name: Build Rust workspace
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
with:
persist-credentials: false
- uses: ./.github/actions/setup-rust
- name: Build
run: cargo build
- name: Upload binaries
uses: actions/upload-artifact@4cec3d8aa04e39d1a68397de0c4cd6fb9dce8ec1 # v4
with:
name: rust-binaries
path: |
target/debug/vss-dealer
target/debug/vss-recipient
target/debug/dkg-worker
target/debug/dkr-src
target/debug/dkr-dst
target/debug/network-node
retention-days: 1
typecheck-scenarios:
name: Typecheck / Scenarios
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
with:
persist-credentials: false
- uses: ./.github/actions/setup-node-pnpm
- name: Typecheck
run: pnpm --filter ace-scenarios typecheck
unit-tests-ts:
name: Unit tests / TypeScript
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
with:
persist-credentials: false
- uses: ./.github/actions/setup-node-pnpm
- name: Test
run: pnpm --filter @aptos-labs/ace-sdk test -- --run
unit-tests-rust:
name: Unit tests / Rust
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
with:
persist-credentials: false
- uses: ./.github/actions/setup-rust
- name: Test
run: cargo test
unit-tests-move:
name: Unit tests / Move
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
with:
persist-credentials: false
- name: Install tools
run: sudo scripts/install-tools.sh
- name: Test
run: |
aptos move test --package-dir contracts/vss
aptos move test --package-dir contracts/sigma-dlog-linear
aptos move test --package-dir contracts/pedersen-polynomial-commitment
aptos move test --package-dir contracts/network
scenarios:
name: scenario / ${{ matrix.scenario }}
needs: build-rust
strategy:
matrix:
scenario:
- test-vss-protocol
- test-vss-protocol-g1
- test-dkg-protocol
- test-dkg-protocol-g1
- test-dkr-protocol
- test-dkr-protocol-g1
- test-threshold-vrf-derive-flow
- test-ibe-aptos-basic
- test-ibe-aptos-custom
- test-network-protocol
- full-happy-path
- test-fault-tolerance
- test-auto-epoch-change
- test-epoch-buffer
- large-committee
fail-fast: false
runs-on: ubuntu-latest
timeout-minutes: 60
permissions:
contents: read
steps:
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
with:
persist-credentials: false
- uses: ./.github/actions/setup-node-pnpm
- name: Download Rust binaries
uses: actions/download-artifact@cc203385981b70ca67e1cc392babf9cc229d5806 # v4
with:
name: rust-binaries
path: target/debug/
- name: Make binaries executable
run: chmod +x target/debug/*
- name: Install tools
run: sudo scripts/install-tools.sh
- name: Run ${{ matrix.scenario }}
env:
ACE_SKIP_CARGO_BUILD: "1"
SCENARIO: ${{ matrix.scenario }}
run: pnpm --filter ace-scenarios "$SCENARIO"