Skip to content

Commit

Permalink
Add WT-FROST to the worker gadget (#711)
Browse files Browse the repository at this point in the history
  • Loading branch information
tbraun96 authored Sep 27, 2023
1 parent da48f39 commit 6859e4f
Show file tree
Hide file tree
Showing 34 changed files with 1,479 additions and 357 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/checks.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: checks
name: Quality Checks

on:
push:
Expand All @@ -12,7 +12,7 @@ env:
jobs:
# checks markdown links
link-check:
name: links
name: Links
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
Expand All @@ -25,7 +25,7 @@ jobs:

# ensures proper formatting and clippy lint
lint-check:
name: lint
name: Linting
runs-on: ubuntu-latest
steps:
- name: Cancel Previous Runs
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/coverage.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: check
name: Coverage Tests

on:
push:
Expand All @@ -13,7 +13,7 @@ jobs:
# code coverage job; moved to own workflow file due to running out of disk space.
# The runner will stop working when the machine runs out of disk space. Free space left: 72 MB
coverage:
name: coverage
name: Tests
runs-on: ubuntu-latest
steps:
- name: Cancel Previous Runs
Expand Down Expand Up @@ -43,7 +43,7 @@ jobs:
run: cargo install cargo-tarpaulin

- name: Run Tarpaulin
run : cargo tarpaulin --out Xml -p pallet-dkg-metadata -p pallet-dkg-proposal-handler -p pallet-dkg-proposals -p dkg-primitives -p dkg-runtime-primitives --locked --jobs 16 --timeout 3600 --skip-clean -- --test-threads 16
run : cargo tarpaulin --out xml -p pallet-dkg-metadata -p pallet-dkg-proposal-handler -p pallet-dkg-proposals -p dkg-primitives -p dkg-runtime-primitives --locked --jobs 16 --timeout 3600 --skip-clean -- --test-threads 16

- name: Upload CodeCov
uses: codecov/codecov-action@v2
Expand Down
16 changes: 4 additions & 12 deletions .github/workflows/harness_stress_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ env:

jobs:
harness:
name: Harness
name: Tests
runs-on: ubuntu-latest
steps:
- name: Cancel Previous Runs
Expand All @@ -23,14 +23,6 @@ jobs:
- name: Checkout Code
uses: actions/checkout@v3

- name: Configure sccache
run: |
echo "RUSTC_WRAPPER=sccache" >> $GITHUB_ENV
echo "SCCACHE_GHA_ENABLED=true" >> $GITHUB_ENV
- name: Run sccache-cache
uses: mozilla-actions/sccache-action@v0.0.3

- name: Restore Cache
if: always()
uses: actions/cache/restore@v3
Expand All @@ -44,10 +36,10 @@ jobs:
- name: Install toolchain
uses: dtolnay/rust-toolchain@stable
with:
toolchain: nightly
toolchain: stable

- name: Install Protobuf
run: sudo apt-get install protobuf-compiler
- name: Install Protobuf and LLVM
run: sudo apt-get install protobuf-compiler llvm libclang-dev

- name: t2n3 && 1 proposal per session
run: cargo run --package dkg-test-orchestrator --features=debug-tracing -- --tmp /tmp --threshold 2 --n 3 --bind 127.0.0.1:7777 --n-tests 10 -p 1
Expand Down
20 changes: 6 additions & 14 deletions .github/workflows/integration_tests.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: integration tests
name: Integration Tests

on:
push:
Expand All @@ -14,7 +14,7 @@ jobs:
# dkg-substrate integration tests
local_chain:
name: Local Chain Tests
runs-on: ubuntu-latest
runs-on: macos-latest
steps:
- name: Cancel Previous Runs
uses: styfle/cancel-workflow-action@0.9.1
Expand All @@ -24,14 +24,6 @@ jobs:
- name: Checkout Code
uses: actions/checkout@v3

- name: Configure sccache
run: |
echo "RUSTC_WRAPPER=sccache" >> $GITHUB_ENV
echo "SCCACHE_GHA_ENABLED=true" >> $GITHUB_ENV
- name: Run sccache-cache
uses: mozilla-actions/sccache-action@v0.0.3

- name: Restore Cache
if: always()
uses: actions/cache/restore@v3
Expand All @@ -45,13 +37,13 @@ jobs:
- name: Install toolchain
uses: dtolnay/rust-toolchain@stable
with:
toolchain: nightly
toolchain: stable

- name: Install Protobuf
run: sudo apt-get install protobuf-compiler
- name: Install Protobuf and LLVM
run: brew install protobuf llvm

- name: Install cargo make
run: cargo install --force cargo-make
run: cargo install cargo-make

- name: Build Binary
run: cargo make build-test
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: run
name: Unit Tests

on:
push:
Expand All @@ -12,7 +12,7 @@ env:
jobs:
# dkg-substrate base unit tests
tests:
name: tests
name: Tests
runs-on: ubuntu-latest
steps:
- name: Cancel Previous Runs
Expand Down
Loading

0 comments on commit 6859e4f

Please sign in to comment.