This repository has been archived by the owner on Nov 19, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
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 #1 from radixdlt/migrate_from_other_repo
- Loading branch information
Showing
104 changed files
with
10,846 additions
and
4 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
RUST_LOG=error |
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,91 @@ | ||
# Testing CI - Runs on each PR and Push | ||
|
||
name: Test | ||
on: | ||
pull_request: | ||
push: | ||
branches: | ||
- main | ||
|
||
permissions: | ||
id-token: write | ||
contents: read | ||
env: | ||
CARGO_TERM_COLOR: always | ||
RUST_TOOLCHAIN: nightly-2024-01-11 | ||
RUST_COMPONENTS: "rust-std" | ||
jobs: | ||
# cargo fmt check | ||
check-formatting: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: RDXWorks-actions/checkout@main | ||
|
||
- name: Install Rust Toolchain | ||
uses: RDXWorks-actions/toolchain@master | ||
with: | ||
toolchain: ${{ env.RUST_TOOLCHAIN }} | ||
default: true | ||
components: rustfmt | ||
|
||
- name: Check formatting | ||
run: cargo fmt --check | ||
|
||
# clippy | ||
check-clippy: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: RDXWorks-actions/checkout@main | ||
|
||
- name: Install Rust Toolchain | ||
uses: RDXWorks-actions/toolchain@master | ||
with: | ||
toolchain: ${{ env.RUST_TOOLCHAIN }} | ||
default: true | ||
components: clippy | ||
|
||
- name: Clippy Check | ||
run: cargo clippy --all | ||
|
||
# Rust unit, doc and integration | ||
test-rust: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: RDXWorks-actions/checkout@main | ||
|
||
- name: Install Rust Toolchain | ||
uses: RDXWorks-actions/toolchain@master | ||
with: | ||
toolchain: ${{ env.RUST_TOOLCHAIN }} | ||
default: true | ||
|
||
- name: Run rust tests | ||
run: cargo test | ||
|
||
# Code Coverage uses Tarpaulin and uploads to CodeCov.io | ||
code-coverage: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: RDXWorks-actions/checkout@main | ||
|
||
- name: Install Rust Toolchain | ||
uses: RDXWorks-actions/toolchain@master | ||
with: | ||
toolchain: ${{ env.RUST_TOOLCHAIN }} | ||
default: true | ||
|
||
- name: Install cargo tarpaulin | ||
uses: RDXWorks-actions/cargo-install@main | ||
with: | ||
crate: cargo-tarpaulin | ||
tag: 0.30.0 | ||
locked: true | ||
|
||
- name: Code Coverage - Generate | ||
run: cargo tarpaulin --out xml | ||
|
||
- name: Code Coverage - Upload to CodeCov.io | ||
uses: RDXWorks-actions/codecov-action@main | ||
with: | ||
token: ${{ secrets.CODECOV }} | ||
fail_ci_if_error: true |
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 |
---|---|---|
@@ -1 +1,2 @@ | ||
/target | ||
tarpaulin-report.* |
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,29 @@ | ||
fail_fast: true | ||
|
||
repos: | ||
- repo: https://github.com/crate-ci/typos | ||
rev: v1.24.1 | ||
hooks: | ||
- id: typos | ||
- repo: local | ||
hooks: | ||
- id: fmt | ||
name: fmt | ||
language: system | ||
types: [file, rust] | ||
entry: cargo fmt -- --check | ||
pass_filenames: false | ||
|
||
- id: clippy | ||
name: clippy | ||
language: system | ||
types: [file, rust] | ||
entry: cargo clippy --all -- -D warnings # Use -D warnings option to ensure the job fails when encountering warnings | ||
pass_filenames: false | ||
|
||
- id: unit tests | ||
name: unit tests | ||
language: system | ||
types: [file, rust] | ||
entry: cargo test --lib | ||
pass_filenames: false |
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,9 @@ | ||
[all] | ||
exclude-files = ["src/types/sargon_types.rs", "src/testing/*", "src/samples/*"] | ||
verbose = false | ||
force-clean = true | ||
timeout = "2m" | ||
locked = true | ||
all-features = true | ||
jobs = 1 | ||
out = ["Html"] |
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,46 @@ | ||
{ | ||
// Use IntelliSense to learn about possible attributes. | ||
// Hover to view descriptions of existing attributes. | ||
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 | ||
"version": "0.2.0", | ||
"configurations": [ | ||
{ | ||
"type": "lldb", | ||
"request": "launch", | ||
"name": "Debug unit tests in library 'signing'", | ||
"cargo": { | ||
"args": [ | ||
"test", | ||
"--no-run", | ||
"--lib", | ||
"--package=signing" | ||
], | ||
"filter": { | ||
"name": "signing", | ||
"kind": "lib" | ||
} | ||
}, | ||
"args": [], | ||
"cwd": "${workspaceFolder}" | ||
}, | ||
{ | ||
"type": "lldb", | ||
"request": "launch", | ||
"name": "Debug integration test 'main'", | ||
"cargo": { | ||
"args": [ | ||
"test", | ||
"--no-run", | ||
"--test=main", | ||
"--package=signing" | ||
], | ||
"filter": { | ||
"name": "main", | ||
"kind": "test" | ||
} | ||
}, | ||
"args": [], | ||
"cwd": "${workspaceFolder}" | ||
} | ||
] | ||
} |
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,18 @@ | ||
{ | ||
"cSpell.words": [ | ||
"Caprese", | ||
"FACTORINSTANCE", | ||
"FACTORSOURCE", | ||
"interactor", | ||
"Interactors", | ||
"Keyrings", | ||
"preprocess", | ||
"Quartier", | ||
"Rémy", | ||
"substate", | ||
"txid", | ||
"txids", | ||
"unsecurified", | ||
"Yubikey" | ||
] | ||
} |
Oops, something went wrong.