Skip to content

Commit 56187b1

Browse files
authored
Merge pull request #1422 from input-output-hk/greg/1397/fake_aggregator
Greg/1397/fake aggregator
2 parents 0573284 + 686470a commit 56187b1

File tree

13 files changed

+2104
-43
lines changed

13 files changed

+2104
-43
lines changed

.github/workflows/ci.yml

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ jobs:
5151
cargo deb --no-build --package mithril-signer
5252
cargo deb --no-build --package mithril-client-cli
5353
cargo deb --no-build --package mithril-relay
54-
54+
5555
- name: Publish Debian packages
5656
uses: actions/upload-artifact@v3
5757
with:
@@ -72,13 +72,13 @@ jobs:
7272
ERAS=$(./target/release/mithril-aggregator era list --json)
7373
echo "Test Lab Eras: $ERAS"
7474
echo "eras=$ERAS" >> $GITHUB_OUTPUT
75-
75+
7676
build:
7777
strategy:
7878
fail-fast: false
7979
matrix:
8080
os: [ macos-12, windows-latest ]
81-
81+
8282
include:
8383
# Only build client on windows & mac
8484
- os: macos-12
@@ -90,7 +90,7 @@ jobs:
9090
binaries-build-args: --bins --package mithril-client-cli --features bundle_openssl
9191
libraries-build-args: --package mithril-stm --package mithril-client --no-default-features --features num-integer-backend,full
9292
runs-on: ${{ matrix.os }}
93-
93+
9494
steps:
9595
- name: Checkout sources
9696
uses: actions/checkout@v3
@@ -99,7 +99,7 @@ jobs:
9999
uses: ./.github/workflows/actions/toolchain-and-cache
100100
with:
101101
cache-version: ${{ secrets.CACHE_VERSION }}
102-
102+
103103
- name: Build Mithril workspace & publish artifacts
104104
uses: ./.github/workflows/actions/build-upload-mithril-artifact
105105
with:
@@ -158,7 +158,7 @@ jobs:
158158
fail-fast: false
159159
matrix:
160160
os: [ ubuntu-22.04, macos-12, windows-latest ]
161-
161+
162162
include:
163163
- os: ubuntu-22.04
164164
test-args: --features portable,full --workspace
@@ -167,9 +167,9 @@ jobs:
167167
test-args: --package mithril-client --package mithril-client-cli --features full
168168
- os: windows-latest
169169
test-args: --package mithril-client --package mithril-client-cli --features full
170-
170+
171171
runs-on: ${{ matrix.os }}
172-
172+
173173
steps:
174174
- name: Checkout sources
175175
uses: actions/checkout@v3
@@ -179,7 +179,7 @@ jobs:
179179
with:
180180
cache-version: ${{ secrets.CACHE_VERSION }}
181181
cargo-tools: cargo-nextest
182-
182+
183183
- name: Build tests
184184
run: cargo nextest run --no-run ${{ matrix.test-args }}
185185

@@ -205,7 +205,7 @@ jobs:
205205
name: test-results${{ matrix.artifact-suffix }}-${{ runner.os }}-${{ runner.arch }}
206206
path: |
207207
./test-results-*.xml
208-
208+
209209
check:
210210
runs-on: ubuntu-22.04
211211
steps:
@@ -224,7 +224,7 @@ jobs:
224224
cargo clippy \
225225
--all-features --all-targets --no-deps --message-format=json \
226226
| clippy-sarif | tee rust-clippy-results.sarif | sarif-fmt
227-
227+
228228
# Make this step fail if any warning has been found
229229
if [[ $(cat rust-clippy-results.sarif | jq '.runs[0].results') != "[]" ]]; then
230230
false
@@ -246,7 +246,7 @@ jobs:
246246
if: success() || failure()
247247
shell: bash
248248
run: cargo sort -w -c
249-
249+
250250
- name: Dependency & Vulnerabilities Review
251251
if: github.event_name == 'pull_request'
252252
uses: actions/dependency-review-action@v3
@@ -311,7 +311,7 @@ jobs:
311311
!./artifacts/devnet/cardano-cli
312312
!./artifacts/devnet/cardano-node
313313
if-no-files-found: error
314-
314+
315315
publish-tests-results:
316316
if: success() || failure()
317317
runs-on: ubuntu-22.04
@@ -357,7 +357,7 @@ jobs:
357357
include:
358358
- project: mithril-client-cli
359359
package: mithril-client
360-
360+
361361
permissions:
362362
contents: read
363363
packages: write
@@ -409,7 +409,7 @@ jobs:
409409
max-parallel: 1
410410
matrix:
411411
package: [ mithril-stm, mithril-common, mithril-client ]
412-
412+
413413
runs-on: ubuntu-22.04
414414
needs:
415415
- build
@@ -424,7 +424,7 @@ jobs:
424424
uses: dtolnay/rust-toolchain@master
425425
with:
426426
toolchain: stable
427-
427+
428428
- name: Publish package to crates.io
429429
uses: ./.github/workflows/actions/publish-crate-package
430430
with:
@@ -443,7 +443,7 @@ jobs:
443443
tag: latest
444444
access: public
445445
api_token_secret_name: NPM_API_TOKEN_MITHRIL_CLIENT_WASM
446-
446+
447447
runs-on: ubuntu-22.04
448448
needs:
449449
- build-test-wasm
@@ -456,7 +456,7 @@ jobs:
456456
with:
457457
cache-version: ${{ secrets.CACHE_VERSION }}-wasm
458458
cargo-tools: wasm-pack
459-
459+
460460
- name: Publish package to npm
461461
uses: ./.github/workflows/actions/publish-npm-package
462462
with:
@@ -478,14 +478,14 @@ jobs:
478478
steps:
479479
- name: Checkout sources
480480
uses: actions/checkout@v3
481-
481+
482482
- name: Prepare packaging
483483
run: mkdir package
484484

485485
- name: Get short SHA
486486
id: slug
487487
run: echo "sha8=$(echo ${{ github.sha }} | cut -c1-7)" >> $GITHUB_OUTPUT
488-
488+
489489
- name: Download built artifacts (Linux-X64)
490490
uses: actions/download-artifact@v3
491491
with:
@@ -517,7 +517,7 @@ jobs:
517517
download-url-base: ${{ github.server_url }}/${{ github.repository }}/releases/download/unstable
518518
gpg-secret-key: ${{ secrets.GPG_SECRET_KEY }}
519519
compatibility-table: '{ "release-mainnet": "⛔", "release-preprod": "⛔", "pre-release-preview": "⛔", "testing-preview": "✔" }'
520-
520+
521521
- name: Update unstable release
522522
uses: marvinpinto/action-automatic-releases@latest
523523
with:

0 commit comments

Comments
 (0)