-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into peg/attestation-pallet
* master: Bump serde_json from 1.0.124 to 1.0.125 in the patch-dependencies group (#1007) Signing flow with derived accounts (#990) Add `network-jumpstart` command to `entropy-test-cli` (#1004) Refactor reshare (#994) Migrate circle-ci workflow to github actions (#991) Delete old keyshare if not in next_signers (#999)
- Loading branch information
Showing
35 changed files
with
652 additions
and
419 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
--- | ||
name: 'Install Dependencies' | ||
description: 'Install the dependencies and Rust components used across jobs' | ||
runs: | ||
using: "composite" | ||
steps: | ||
- name: Install dependencies | ||
run: | | ||
sudo sed -i "/#\$nrconf{restart} = 'i';/s/.*/\$nrconf{restart} = 'a';/" /etc/needrestart/needrestart.conf | ||
sudo apt-get update | ||
sudo apt install -y libssl-dev clang libclang-dev protobuf-compiler | ||
shell: bash | ||
- name: Add Rust components | ||
run: | | ||
rustup target add wasm32-unknown-unknown | ||
rustup component add rust-src | ||
shell: bash | ||
- name: Install wasm-pack | ||
run: curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh | ||
shell: bash |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
--- | ||
name: "Build and test" | ||
on: | ||
push: | ||
paths: | ||
- "node/**" | ||
- "crates/**" | ||
- "pallets/**" | ||
- "runtime/**" | ||
|
||
jobs: | ||
node-test: | ||
runs-on: core-build-runner | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Increase swap | ||
run: | | ||
sudo swapoff -a | ||
sudo dd if=/dev/zero of=/swapfile bs=1G count=8 | ||
sudo chmod 0600 /swapfile | ||
sudo mkswap /swapfile | ||
sudo swapon /swapfile | ||
grep Swap /proc/meminfo | ||
- name: Install dependencies | ||
uses: ./.github/actions/install-dependencies/ | ||
- name: Build entropy-protocol nodejs package | ||
run: | | ||
cd crates/protocol | ||
make build-nodejs-testing | ||
cd nodejs-test | ||
yarn | ||
cd ../../.. | ||
- name: Run `cargo build && cargo test` | ||
run: | | ||
pushd node | ||
cargo build --all-targets --release -j $(nproc) | ||
cargo test --all-targets --release | ||
yarn --cwd ../crates/protocol/nodejs-test test | ||
cargo test -p entropy-tss --release --features=test_helpers -F wasm_test test_wasm |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
--- | ||
name: "Check chainspecs" | ||
on: ["push"] | ||
|
||
jobs: | ||
check-chainspecs: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v4 | ||
- name: Install dependencies | ||
uses: ./.github/actions/install-dependencies/ | ||
- name: Check chainspecs | ||
run: | | ||
cargo run -p entropy -- build-spec --raw --chain dev > chainspec-dev-raw.json | ||
cargo run -p entropy -- build-spec --raw --chain integration-tests > chainspec-integration-raw.json | ||
cargo run -p entropy -- build-spec --raw --chain testnet > chainspec-testnet-raw.json |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
--- | ||
name: "Check documentation build" | ||
on: ["push"] | ||
|
||
jobs: | ||
check-doc-build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v4 | ||
- name: Install dependencies | ||
uses: ./.github/actions/install-dependencies/ | ||
- name: Build documentation | ||
run: cargo doc --no-deps |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
--- | ||
name: "Lint and check licenses" | ||
on: ["push"] | ||
|
||
jobs: | ||
lint: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v4 | ||
- name: Install dependencies | ||
uses: ./.github/actions/install-dependencies/ | ||
- name: Format and lint | ||
run: | | ||
curl -LsSf https://github.com/tamasfe/taplo/releases/download/0.8.0/taplo-full-linux-x86_64.gz | gunzip -N -d - > ${CARGO_HOME:-~/.cargo}/bin/taplo && chmod +x ${CARGO_HOME:-~/.cargo}/bin/taplo | ||
cargo fmt --check | ||
taplo fmt --check | ||
cargo clippy -- -D warnings | ||
check-licenses: | ||
runs-on: ubuntu-22.04 | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v4 | ||
- name: Check licenses with cargo deny | ||
run: | | ||
cargo install --locked cargo-deny | ||
cargo deny --all-features check license |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
name: "Test: check runtime benchmarks" | ||
on: ["push"] | ||
|
||
jobs: | ||
test-runtime-benchmarks: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v4 | ||
- name: Install dependencies | ||
uses: ./.github/actions/install-dependencies/ | ||
- name: Check runtime-benchmarks | ||
run: | | ||
pushd node && cargo check --features=runtime-benchmarks |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.