Skip to content

Commit

Permalink
Bump mp-ecdsa (#493)
Browse files Browse the repository at this point in the history
* Bump mp-ecdsa

* fix the ci

* fix the CI

* another fix for the CI

* fix missing treat items

---------

Co-authored-by: Shady Khalifa <[email protected]>
  • Loading branch information
drewstone and shekohex authored Feb 16, 2023
1 parent 92e7720 commit 2208463
Show file tree
Hide file tree
Showing 6 changed files with 25 additions and 14 deletions.
19 changes: 11 additions & 8 deletions .github/workflows/checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,16 @@ name: checks

on:
push:
branches: [ master ]
branches: [master]
pull_request:
branches:
- '**'
branches:
- "**"

workflow_dispatch:

env:
CARGO_REGISTRIES_CRATES_IO_PROTOCOL: git

jobs:
# checks markdown links
link-check:
Expand All @@ -20,9 +23,9 @@ jobs:
- name: Check markdown links
uses: gaurav-nelson/github-action-markdown-link-check@v1
with:
use-quiet-mode: 'yes'
config-file: '.github/workflows/mlc_config.json'
use-quiet-mode: "yes"
config-file: ".github/workflows/mlc_config.json"

# ensures proper formatting and clippy lint
lint-check:
name: lint
Expand All @@ -37,8 +40,8 @@ jobs:
- name: Install latest nightly
uses: dtolnay/rust-toolchain@stable
with:
toolchain: nightly
components: rustfmt, clippy
toolchain: nightly
components: rustfmt, clippy

- name: Rust Cache
uses: Swatinem/[email protected]
Expand Down
11 changes: 7 additions & 4 deletions .github/workflows/e2e.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,15 @@ name: run

on:
push:
branches: [ master ]
branches: [master]
pull_request:
branches: [ master ]
branches: [master]

workflow_dispatch:

env:
CARGO_REGISTRIES_CRATES_IO_PROTOCOL: git

jobs:
# dkg-substrate integration tests
e2e:
Expand Down Expand Up @@ -42,7 +45,7 @@ jobs:

- name: Populate fixtures
run: dvc pull

- name: Install Protobuf
run: sudo apt-get install protobuf-compiler

Expand All @@ -60,7 +63,7 @@ jobs:

- name: Run E2E Tests
run: cd dkg-test-suite && yarn test:e2e

integration-tests:
name: integration-tests
runs-on: ubuntu-latest
Expand Down
5 changes: 4 additions & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ on:

workflow_dispatch:

env:
CARGO_REGISTRIES_CRATES_IO_PROTOCOL: git

jobs:
# dkg-substrate base unit tests
tests:
Expand All @@ -23,7 +26,7 @@ jobs:
- name: Maximize build space
uses: easimon/maximize-build-space@master
with:
remove-dotnet: 'true'
remove-dotnet: "true"

- name: Clear up disk space (2)
run: |
Expand Down
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions pallets/dkg-proposal-handler/src/mock.rs
Original file line number Diff line number Diff line change
Expand Up @@ -238,6 +238,7 @@ impl pallet_dkg_metadata::Config for Test {
type RefreshDelay = RefreshDelay;
type KeygenJailSentence = Period;
type SigningJailSentence = Period;
type SessionPeriod = Period;
type DecayPercentage = DecayPercentage;
type Reputation = u128;
type UnsignedInterval = frame_support::traits::ConstU64<0>;
Expand Down
1 change: 1 addition & 0 deletions pallets/dkg-proposals/src/mock.rs
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,7 @@ impl pallet_dkg_metadata::Config for Test {
type KeygenJailSentence = Period;
type SigningJailSentence = Period;
type DecayPercentage = DecayPercentage;
type SessionPeriod = Period;
type Reputation = u128;
type UnsignedInterval = frame_support::traits::ConstU64<0>;
type UnsignedPriority = frame_support::traits::ConstU64<{ 1 << 20 }>;
Expand Down

0 comments on commit 2208463

Please sign in to comment.