-
Notifications
You must be signed in to change notification settings - Fork 6
180 lines (168 loc) · 5.22 KB
/
contracts.yml
File metadata and controls
180 lines (168 loc) · 5.22 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
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
name: MultiversX Full Suite
on:
workflow_call:
inputs:
rust-toolchain:
description: "Rust toolchain to use"
default: "stable"
required: false
type: string
runs-on:
description: "The type of machine to run all the jobs on"
default: "ubuntu-latest"
required: false
type: string
setup-runs-on:
description: "The type of machine to run the setup job on"
required: false
type: string
wasm-test-runs-on:
description: "The type of machine to run the Wasm Tests job on"
required: false
type: string
interactor-tests-runs-on:
description: "The type of machine to run the Interactor Tests job on"
required: false
type: string
test-coverage-runs-on:
description: "The type of machine to run the Test Coverage job on"
required: false
type: string
rust-target:
description: "Rust target to use"
default: "wasm32-unknown-unknown"
required: false
type: string
sc-meta-version:
description: "multiversx-sc-meta version"
default: ""
required: false
type: string
mx-scenario-go-version:
description: "sc-scenario-go version"
default: ""
required: false
type: string
wasm-opt-version:
description: "The wasm-opt version to use"
default: "108"
required: false
type: string
path-to-sc-meta:
description: "multiversx-sc-meta from local"
default: ""
required: false
type: string
clippy-args:
description: "cargo clippy arguments"
default: "--all-targets --all-features"
required: false
type: string
enable-contracts-size-report:
description: "Enable contracts size report"
default: true
required: false
type: boolean
enable-interactor-tests:
description: "Enable interactor tests"
default: false
required: false
type: boolean
enable-proxy-compare:
description: "Enable proxy compare check"
default: true
required: false
type: boolean
coverage-args:
description: "sc-meta test-coverage arguments"
default: "--output ./coverage.md"
required: false
type: string
secrets:
token:
description: "Github token"
required: true
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
setup:
name: Setup Environment
uses: ./.github/workflows/setup.yml
with:
rust-toolchain: ${{ inputs.rust-toolchain }}
runs-on: ${{ inputs.setup-runs-on || inputs.runs-on }}
rust-target: ${{ inputs.rust-target }}
sc-meta-version: ${{ inputs.sc-meta-version }}
mx-scenario-go-version: ${{ inputs.mx-scenario-go-version }}
wasm-opt-version: ${{ inputs.wasm-opt-version }}
path-to-sc-meta: ${{ inputs.path-to-sc-meta }}
build-contracts:
name: Build Contracts
needs: setup
uses: ./.github/workflows/build-contracts.yml
with:
rust-toolchain: ${{ inputs.rust-toolchain }}
runs-on: ${{ inputs.runs-on }}
rust-target: ${{ inputs.rust-target }}
wasm-tests:
name: Wasm tests
needs: build-contracts
uses: ./.github/workflows/wasm-tests.yml
with:
rust-toolchain: ${{ inputs.rust-toolchain }}
runs-on: ${{ inputs.wasm-test-runs-on || inputs.runs-on }}
interactor-tests:
name: Interactor tests
needs: build-contracts
if: inputs.enable-interactor-tests
uses: ./.github/workflows/interactor-tests.yml
with:
rust-toolchain: ${{ inputs.rust-toolchain }}
runs-on: ${{ inputs.interactor-tests-runs-on || inputs.runs-on }}
generate-report:
name: Generate Report
needs: build-contracts
if: inputs.enable-contracts-size-report
uses: ./.github/workflows/report.yml
with:
rust-toolchain: ${{ inputs.rust-toolchain }}
runs-on: ${{ inputs.runs-on }}
proxy-compare:
name: Proxy Compare
needs: setup
if: inputs.enable-proxy-compare
uses: ./.github/workflows/proxy-compare.yml
with:
rust-toolchain: ${{ inputs.rust-toolchain }}
runs-on: ${{ inputs.runs-on }}
test-coverage:
name: Test Coverage
needs: setup
uses: ./.github/workflows/coverage.yml
with:
rust-toolchain: ${{ inputs.rust-toolchain }}
runs-on: ${{ inputs.test-coverage-runs-on || inputs.runs-on }}
coverage-args: ${{ inputs.coverage-args }}
rust-tests:
name: Rust tests
uses: ./.github/workflows/rust-tests.yml
with:
rust-toolchain: ${{ inputs.rust-toolchain }}
runs-on: ${{ inputs.runs-on }}
clippy-check:
name: Clippy linter check
runs-on: ${{ inputs.runs-on }}
timeout-minutes: 20
steps:
- uses: actions/checkout@v5
- uses: actions-rust-lang/setup-rust-toolchain@v1
with:
toolchain: ${{ inputs.rust-toolchain }}
components: clippy
- uses: giraffate/clippy-action@v1
env:
RUSTFLAGS: ""
with:
github_token: ${{ github.token }}
clippy_flags: ${{ inputs.clippy-args }}