-
Notifications
You must be signed in to change notification settings - Fork 573
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2465 from iron-fish/staging
STAGING -> MASTER
- Loading branch information
Showing
192 changed files
with
8,246 additions
and
5,615 deletions.
There are no files selected for viewing
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
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
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
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
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
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
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
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
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
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 |
---|---|---|
|
@@ -3,14 +3,18 @@ on: | |
paths: | ||
- "ironfish-rust/**" | ||
- "ironfish-rust-nodejs/**" | ||
- "ironfish-zkp/**" | ||
- "rust-toolchain" | ||
- ".github/workflows/rust_ci.yml" | ||
push: | ||
branches: | ||
- master | ||
paths: | ||
- "ironfish-rust/**" | ||
- "ironfish-rust-nodejs/**" | ||
- "ironfish-zkp/**" | ||
- "rust-toolchain" | ||
- ".github/workflows/rust_ci.yml" | ||
|
||
name: Rust CI | ||
|
||
|
@@ -19,25 +23,21 @@ jobs: | |
name: ironfish-rust | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/checkout@v3 | ||
- uses: actions-rs/toolchain@v1 | ||
with: | ||
components: rustfmt, clippy | ||
|
||
- name: Cache Rust | ||
uses: Swatinem/rust-cache@v1 | ||
uses: Swatinem/rust-cache@v2 | ||
with: | ||
sharedKey: base | ||
working-directory: ironfish-rust | ||
|
||
- name: Check for license headers | ||
run: ./ci/lintHeaders.sh ./ironfish-rust/src *.rs | ||
shared-key: base | ||
|
||
# Build & Run test & Collect Code coverage | ||
- name: Run cargo-tarpaulin on ironfish-rust | ||
uses: actions-rs/[email protected] | ||
with: | ||
version: "0.20.0" | ||
version: "0.22.0" | ||
args: --avoid-cfg-tarpaulin --manifest-path ironfish-rust/Cargo.toml --release -- --test-threads 1 | ||
|
||
# Upload code coverage to Codecov | ||
|
@@ -47,6 +47,9 @@ jobs: | |
token: ${{secrets.CODECOV_TOKEN}} | ||
flags: ironfish-rust | ||
|
||
- name: Check for license headers | ||
run: ./ci/lintHeaders.sh ./ironfish-rust/src *.rs | ||
|
||
# fmt | ||
- uses: actions-rs/cargo@v1 | ||
name: "`cargo fmt` check on ironfish-rust" | ||
|
@@ -65,43 +68,78 @@ jobs: | |
name: ironfish-rust-nodejs | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/checkout@v3 | ||
- uses: actions-rs/toolchain@v1 | ||
with: | ||
components: rustfmt, clippy | ||
|
||
- name: Cache Rust | ||
uses: Swatinem/rust-cache@v1 | ||
uses: Swatinem/rust-cache@v2 | ||
with: | ||
shared-key: nodejs | ||
|
||
# Check | ||
- name: Run cargo check on ironfish-rust-nodejs | ||
uses: actions-rs/cargo@v1 | ||
with: | ||
sharedKey: nodejs | ||
working-directory: ironfish-rust-nodejs | ||
command: "check" | ||
args: --manifest-path ironfish-rust-nodejs/Cargo.toml | ||
|
||
- name: Check for license headers | ||
run: ./ci/lintHeaders.sh ./ironfish-rust-nodejs/src *.rs | ||
|
||
# fmt | ||
- uses: actions-rs/cargo@v1 | ||
name: "`cargo fmt` check on ironfish-rust-nodejs" | ||
with: | ||
command: fmt | ||
args: --manifest-path ironfish-rust-nodejs/Cargo.toml --all -- --check | ||
|
||
# clippy | ||
- uses: actions-rs/cargo@v1 | ||
name: "Clippy check on ironfish-rust-nodejs" | ||
with: | ||
command: clippy | ||
args: --manifest-path ironfish-rust-nodejs/Cargo.toml -- -D warnings | ||
|
||
ironfish_zkp: | ||
name: ironfish-zkp | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions-rs/toolchain@v1 | ||
with: | ||
components: rustfmt, clippy | ||
|
||
- name: Cache Rust | ||
uses: Swatinem/rust-cache@v2 | ||
with: | ||
shared-key: zkp | ||
|
||
# Build & Run test & Collect Code coverage | ||
- name: Run cargo-tarpaulin on ironfish-rust-nodejs | ||
- name: Run cargo-tarpaulin on ironfish-zkp | ||
uses: actions-rs/[email protected] | ||
with: | ||
version: "0.20.0" | ||
args: --avoid-cfg-tarpaulin --manifest-path ironfish-rust-nodejs/Cargo.toml --release -- --test-threads 1 | ||
version: "0.22.0" | ||
args: --avoid-cfg-tarpaulin --manifest-path ironfish-zkp/Cargo.toml --release -- --test-threads 1 | ||
|
||
# upload code coverage to Codecov | ||
# Upload code coverage to Codecov | ||
- name: Upload to codecov.io | ||
uses: codecov/[email protected] | ||
with: | ||
flags: ironfish-rust-nodejs | ||
token: ${{secrets.CODECOV_TOKEN}} | ||
flags: ironfish-zkp | ||
|
||
# fmt | ||
- uses: actions-rs/cargo@v1 | ||
name: "`cargo fmt` check on ironfish-rust-nodejs" | ||
name: "`cargo fmt` check on ironfish-zkp" | ||
with: | ||
command: fmt | ||
args: --manifest-path ironfish-rust-nodejs/Cargo.toml --all -- --check | ||
args: --manifest-path ironfish-zkp/Cargo.toml --all -- --check | ||
|
||
# clippy | ||
- uses: actions-rs/cargo@v1 | ||
name: "Clippy check on ironfish-rust-nodejs" | ||
name: "Clippy check on ironfish-zkp" | ||
with: | ||
command: clippy | ||
args: --manifest-path ironfish-rust-nodejs/Cargo.toml -- -D warnings | ||
args: --manifest-path ironfish-zkp/Cargo.toml -- -D warnings |
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 |
---|---|---|
|
@@ -37,7 +37,7 @@ lerna-debug.log* | |
.pnp.* | ||
|
||
# rust build artifacts | ||
**/*/target/* | ||
**/target/* | ||
*.node | ||
|
||
# ironfish-cli | ||
|
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.