@@ -25,28 +25,24 @@ jobs:
2525 with :
2626 ref : ${{ github.event.pull_request.head.sha }}
2727 - uses : Swatinem/rust-cache@v2
28- with :
29- shared-key : " cov"
30- - name : Install Rust toolchain
31- uses : actions-rs/toolchain@v1
32- with :
33- toolchain : " 1.65" # it says it can read the rust-toolchain file, but it fails if we omit this
34- components : llvm-tools-preview
3528 - name : Install Nextest
3629 run : curl -LsSf https://get.nexte.st/latest/linux | tar zxf - -C ${CARGO_HOME:-~/.cargo}/bin
37- - name : Install cargo-llvm-cov
38- uses : taiki-e/install-action@cargo-llvm-cov
3930 - name : Install deps
4031 run :
4132 sudo apt install -y protobuf-compiler libssl-dev libpq-dev libsqlite3-dev pkg-config
33+
4234 - name : Run vit-ss tests
43- run : |
44- source <(cargo llvm-cov show-env --export-prefix)
35+ uses : actions-rs/toolchain@v1
36+ with :
37+ toolchain : " 1.65" # it says it can read the rust-toolchain file, but it fails if we omit this
38+ - run : |
4539 cargo build -p vit-servicing-station-cli -p vit-servicing-station-server
46- cargo llvm-cov nextest --no-report --manifest-path ./src/vit-servicing-station/vit-servicing-station-cli/Cargo.toml --profile ci
47- cargo llvm-cov nextest --no-report --manifest-path ./src/vit-servicing-station/vit-servicing-station-lib/Cargo.toml --profile ci
48- cargo llvm-cov nextest --no-report --manifest-path ./src/vit-servicing-station/vit-servicing-station-server/Cargo.toml --profile ci
49- cargo llvm-cov nextest --no-report --manifest-path ./src/vit-servicing-station/vit-servicing-station-tests/Cargo.toml --profile ci
40+ cargo nextest run \
41+ -p vit-servicing-station-cli \
42+ -p vit-servicing-station-lib \
43+ -p vit-servicing-station-tests \
44+ -p vit-servicing-station-server \
45+ --profile ci
5046
5147 catalyst_toolbox :
5248 name : Catalyst Toolbox Tests
@@ -59,26 +55,17 @@ jobs:
5955 with :
6056 ref : ${{ github.event.pull_request.head.sha }}
6157 - uses : Swatinem/rust-cache@v2
62- with :
63- shared-key : " cov"
64- - name : Install Rust toolchain
65- uses : actions-rs/toolchain@v1
66- with :
67- toolchain : " 1.65" # it says it can read the rust-toolchain file, but it fails if we omit this
68- components : llvm-tools-preview
6958 - name : Install Nextest
7059 run : curl -LsSf https://get.nexte.st/latest/linux | tar zxf - -C ${CARGO_HOME:-~/.cargo}/bin
71- - name : Install cargo-llvm-cov
72- uses : taiki-e/install-action@cargo-llvm-cov
7360 - name : Install deps
7461 run :
7562 sudo apt install -y protobuf-compiler libssl-dev libpq-dev libsqlite3-dev pkg-config
7663
7764 - name : Run catalyst-toolbox tests
78- run : |
79- source <(cargo llvm-cov show-env --export-prefix)
80- cargo llvm-cov nextest --no-report --manifest-path ./src/catalyst-toolbox/catalyst-toolbox/Cargo.toml --profile ci
81- cargo llvm-cov nextest --no-report --manifest-path ./src/ catalyst-toolbox/ snapshot-lib/Cargo.toml --profile ci
65+ uses : actions-rs/toolchain@v1
66+ with :
67+ toolchain : " 1.65 " # it says it can read the rust-toolchain file, but it fails if we omit this
68+ - run : cargo nextest run -p catalyst-toolbox -p snapshot-lib --profile ci
8269
8370 voting_tools :
8471 name : Voting Tools Tests
@@ -91,25 +78,17 @@ jobs:
9178 with :
9279 ref : ${{ github.event.pull_request.head.sha }}
9380 - uses : Swatinem/rust-cache@v2
94- with :
95- shared-key : " cov"
96- - name : Install Rust toolchain
97- uses : actions-rs/toolchain@v1
98- with :
99- toolchain : " 1.65" # it says it can read the rust-toolchain file, but it fails if we omit this
100- components : llvm-tools-preview
10181 - name : Install Nextest
10282 run : curl -LsSf https://get.nexte.st/latest/linux | tar zxf - -C ${CARGO_HOME:-~/.cargo}/bin
103- - name : Install cargo-llvm-cov
104- uses : taiki-e/install-action@cargo-llvm-cov
10583 - name : Install deps
10684 run :
10785 sudo apt install -y protobuf-compiler libssl-dev libpq-dev libsqlite3-dev pkg-config
10886
10987 - name : Run voting-tools tests
110- run : |
111- source <(cargo llvm-cov show-env --export-prefix)
112- cargo llvm-cov nextest --no-report --manifest-path ./src/voting-tools-rs/Cargo.toml --profile ci
88+ uses : actions-rs/toolchain@v1
89+ with :
90+ toolchain : " 1.65" # it says it can read the rust-toolchain file, but it fails if we omit this
91+ - run : cargo nextest run -p voting_tools_rs --profile ci
11392
11493 chain-libs :
11594 name : Chain Libs Tests
@@ -122,45 +101,17 @@ jobs:
122101 with :
123102 ref : ${{ github.event.pull_request.head.sha }}
124103 - uses : Swatinem/rust-cache@v2
125- with :
126- shared-key : " cov"
127- - name : Install Rust toolchain
128- uses : actions-rs/toolchain@v1
129- with :
130- toolchain : " 1.65" # it says it can read the rust-toolchain file, but it fails if we omit this
131- components : llvm-tools-preview
132104 - name : Install Nextest
133105 run : curl -LsSf https://get.nexte.st/latest/linux | tar zxf - -C ${CARGO_HOME:-~/.cargo}/bin
134- - name : Install cargo-llvm-cov
135- uses : taiki-e/install-action@cargo-llvm-cov
136106 - name : Install deps
137107 run :
138108 sudo apt install -y protobuf-compiler libssl-dev libpq-dev libsqlite3-dev pkg-config
139109
140110 - name : Run chain-libs tests
141- run : |
142- source <(cargo llvm-cov show-env --export-prefix)
143- cargo llvm-cov nextest --no-report --manifest-path ./src/chain-libs/cardano-legacy-address/Cargo.toml --profile ci
144- cargo llvm-cov nextest --no-report --manifest-path ./src/chain-libs/chain-addr/Cargo.toml --profile ci
145- cargo llvm-cov nextest --no-report --manifest-path ./src/chain-libs/chain-core/Cargo.toml --profile ci
146- cargo llvm-cov nextest --no-report --manifest-path ./src/chain-libs/chain-crypto/Cargo.toml --profile ci
147- cargo llvm-cov nextest --no-report --manifest-path ./src/chain-libs/chain-evm/Cargo.toml --profile ci
148- cargo llvm-cov nextest --no-report --manifest-path ./src/chain-libs/chain-impl-mockchain/Cargo.toml --profile ci
149- cargo llvm-cov nextest --no-report --manifest-path ./src/chain-libs/chain-network/Cargo.toml --profile ci
150- cargo llvm-cov nextest --no-report --manifest-path ./src/chain-libs/chain-ser/Cargo.toml --profile ci
151- cargo llvm-cov nextest --no-report --manifest-path ./src/chain-libs/chain-storage/Cargo.toml --profile ci
152- cargo llvm-cov nextest --no-report --manifest-path ./src/chain-libs/chain-time/Cargo.toml --profile ci
153- cargo llvm-cov nextest --no-report --manifest-path ./src/chain-libs/chain-vote/Cargo.toml --profile ci
154- cargo llvm-cov nextest --no-report --manifest-path ./src/chain-libs/imhamt/Cargo.toml --profile ci
155- cargo llvm-cov nextest --no-report --manifest-path ./src/chain-libs/sparse-array/Cargo.toml --profile ci
156- cargo llvm-cov nextest --no-report --manifest-path ./src/chain-libs/typed-bytes/Cargo.toml --profile ci
157- cargo llvm-cov nextest --no-report --manifest-path ./src/chain-wallet-libs/bindings/wallet-c/Cargo.toml --profile ci
158- cargo llvm-cov nextest --no-report --manifest-path ./src/chain-wallet-libs/bindings/wallet-core/Cargo.toml --profile ci
159- cargo llvm-cov nextest --no-report --manifest-path ./src/chain-wallet-libs/bindings/wallet-wasm-js/Cargo.toml --profile ci
160- cargo llvm-cov nextest --no-report --manifest-path ./src/chain-wallet-libs/chain-path-derivation/Cargo.toml --profile ci
161- cargo llvm-cov nextest --no-report --manifest-path ./src/chain-wallet-libs/hdkeygen/Cargo.toml --profile ci
162- cargo llvm-cov nextest --no-report --manifest-path ./src/chain-wallet-libs/symmetric-cipher/Cargo.toml --profile ci
163- cargo llvm-cov nextest --no-report --manifest-path ./src/chain-wallet-libs/wallet/Cargo.toml --profile ci
111+ uses : actions-rs/toolchain@v1
112+ with :
113+ toolchain : " 1.65" # it says it can read the rust-toolchain file, but it fails if we omit this
114+ - run : cargo nextest run -p "chain-*" --profile ci
164115
165116 jormungandr :
166117 name : Jormungandr Tests
@@ -173,25 +124,17 @@ jobs:
173124 with :
174125 ref : ${{ github.event.pull_request.head.sha }}
175126 - uses : Swatinem/rust-cache@v2
176- with :
177- shared-key : " cov"
178- - name : Install Rust toolchain
179- uses : actions-rs/toolchain@v1
180- with :
181- toolchain : " 1.65" # it says it can read the rust-toolchain file, but it fails if we omit this
182- components : llvm-tools-preview
183127 - name : Install Nextest
184128 run : curl -LsSf https://get.nexte.st/latest/linux | tar zxf - -C ${CARGO_HOME:-~/.cargo}/bin
185- - name : Install cargo-llvm-cov
186- uses : taiki-e/install-action@cargo-llvm-cov
187129 - name : Install deps
188130 run :
189131 sudo apt install -y protobuf-compiler libssl-dev libpq-dev libsqlite3-dev pkg-config
190132
191133 - name : Run jormungandr tests
192- run : |
193- source <(cargo llvm-cov show-env --export-prefix)
194- cargo llvm-cov nextest --no-report --manifest-path ./src/jormungandr/jormungandr/Cargo.toml --profile ci
134+ uses : actions-rs/toolchain@v1
135+ with :
136+ toolchain : " 1.65" # it says it can read the rust-toolchain file, but it fails if we omit this
137+ - run : cargo nextest run -p jormungandr --profile ci
195138
196139 jormungandr-integration :
197140 name : Jormungandr Integration Tests
@@ -204,49 +147,19 @@ jobs:
204147 with :
205148 ref : ${{ github.event.pull_request.head.sha }}
206149 - uses : Swatinem/rust-cache@v2
207- with :
208- shared-key : " cov"
209- - name : Install Rust toolchain
210- uses : actions-rs/toolchain@v1
211- with :
212- toolchain : " 1.65" # it says it can read the rust-toolchain file, but it fails if we omit this
213- components : llvm-tools-preview
214150 - name : Install Nextest
215151 run : curl -LsSf https://get.nexte.st/latest/linux | tar zxf - -C ${CARGO_HOME:-~/.cargo}/bin
216- - name : Install cargo-llvm-cov
217- uses : taiki-e/install-action@cargo-llvm-cov
218152 - name : Install deps
219153 run :
220154 sudo apt install -y protobuf-compiler libssl-dev libpq-dev libsqlite3-dev pkg-config
221155
222156 - name : Run jormungandr-integration tests
223- run : |
224- source <(cargo llvm-cov show-env --export-prefix)
225- cargo build -p jcli -p jormungandr -p explorer
226- cargo llvm-cov nextest --no-report --manifest-path ./src/jormungandr/testing/jormungandr-integration-tests/Cargo.toml --profile ci
227-
228- code-coverage :
229- name : Generage and publish code coverage
230- runs-on : ubuntu-latest
231- needs : [vit_servicing_station, catalyst_toolbox, voting_tools, chain-libs, jormungandr, jormungandr-integration]
232- steps :
233- - name : Checkout code
234- uses : actions/checkout@v3
235- with :
236- ref : ${{ github.event.pull_request.head.sha }}
237- - uses : Swatinem/rust-cache@v2
238- with :
239- shared-key : " cov"
240- - name : Install cargo-llvm-cov
241- uses : taiki-e/install-action@cargo-llvm-cov
242- - name : Generate lcov.info
243- run : cargo llvm-cov report --lcov --output-path ./lcov.info
244-
245- - name : Upload code coverage to coveralls.io
246- uses : coverallsapp/github-action@master
157+ uses : actions-rs/toolchain@v1
247158 with :
248- github-token : ${{ secrets.GITHUB_TOKEN }}
249- path-to-lcov : " ./lcov.info"
159+ toolchain : " 1.65" # it says it can read the rust-toolchain file, but it fails if we omit this
160+ - run : |
161+ cargo build -p jcli -p jormungandr -p explorer
162+ cargo nextest run -p jormungandr-integration-tests --profile ci
250163
251164 wallet-js-binding :
252165 name : Wallet JS Binding Tests
@@ -289,8 +202,6 @@ jobs:
289202 with :
290203 ref : ${{ github.event.pull_request.head.sha }}
291204 - uses : Swatinem/rust-cache@v2
292- with :
293- shared-key : " cov"
294205 - name : Install deps
295206 run :
296207 sudo apt install -y protobuf-compiler libssl-dev libpq-dev libsqlite3-dev pkg-config
@@ -299,4 +210,4 @@ jobs:
299210 with :
300211 toolchain : " 1.65" # it says it can read the rust-toolchain file, but it fails if we omit this
301212 components : rustfmt, clippy
302- - run : scripts/check-fmt.sh
213+ - run : scripts/check-fmt.sh
0 commit comments