This repository has been archived by the owner on Oct 31, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Co-authored-by: axb-topos <[email protected]> Co-authored-by: Perry Birch <[email protected]> Co-authored-by: JDawg287 <[email protected]> Co-authored-by: Monir Hadji <[email protected]>
- Loading branch information
0 parents
commit 87888d4
Showing
61 changed files
with
8,838 additions
and
0 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,9 @@ | ||
/target/ | ||
/.idea/ | ||
/.github/ | ||
/.vscode/ | ||
/docs/ | ||
*.iml | ||
/.git/ | ||
Dockerfile | ||
docker-compose.yml |
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,6 @@ | ||
{ | ||
"name": "Rust", | ||
"description": "Build and test a Rust project with Cargo.", | ||
"iconName": "rust", | ||
"categories": ["Continuous integration", "Rust"] | ||
} |
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,34 @@ | ||
name: Rust | ||
|
||
on: | ||
push: | ||
branches: [ main ] | ||
pull_request: | ||
branches: [ main ] | ||
|
||
# Allows you to run this workflow manually from the Actions tab | ||
workflow_dispatch: | ||
env: | ||
CARGO_TERM_COLOR: always | ||
|
||
jobs: | ||
build: | ||
name: Build and Test | ||
runs-on: ubuntu-latest | ||
container: paritytech/ci-linux:production | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Build | ||
run: RUSTFLAGS='-D warnings' cargo build --verbose | ||
- name: Test | ||
run: cargo test --all --verbose | ||
clippy: | ||
name: Lint and Format | ||
runs-on: ubuntu-latest | ||
container: paritytech/ci-linux:production | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Clippy | ||
run: cargo clippy --all -- -D clippy::suspicious | ||
- name: Fmt | ||
run: cargo fmt --all --check |
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,15 @@ | ||
# Generated by Cargo | ||
# will have compiled files and executables | ||
/target/ | ||
*~ | ||
|
||
# testing database | ||
/default_db/ | ||
/db*/ | ||
|
||
# These are backup files generated by rustfmt | ||
**/*.rs.bk | ||
|
||
# IntelliJ files | ||
.idea | ||
**/*.iml |
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,82 @@ | ||
{ | ||
// 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": [ | ||
{ | ||
"name": "tce-node-app (debug)", | ||
"type": "lldb", | ||
"request": "launch", | ||
"cargo": { | ||
"args": ["build", "--bin=topos-tce-node-app", "--package=topos-tce"], | ||
"filter": { | ||
"name": "topos-tce-node-app", | ||
"kind": "bin" | ||
} | ||
}, | ||
"args": [], | ||
"cwd": "${workspaceFolder}", | ||
"env": { | ||
"RUST_LOG": "trace" | ||
} | ||
}, | ||
{ | ||
"type": "lldb", | ||
"request": "launch", | ||
"name": "tce-node-app (tests, debug)", | ||
"cargo": { | ||
"args": [ | ||
"test", | ||
"--no-run", | ||
"--bin=tce-node-app", | ||
"--package=tce-node-app" | ||
], | ||
"filter": { | ||
"name": "tce-node-app", | ||
"kind": "bin" | ||
} | ||
}, | ||
"args": [], | ||
"cwd": "${workspaceFolder}" | ||
}, | ||
{ | ||
"name": "reliable_broadcast (tests, debug)", | ||
"type": "lldb", | ||
"request": "launch", | ||
"cargo": { | ||
"args": [ | ||
"test", | ||
"--no-run", | ||
"--test=client_test", | ||
"--package=topos-tce-protocols-reliable-broadcast" | ||
], | ||
"filter": { | ||
"name": "client_test", | ||
"kind": "test" | ||
} | ||
}, | ||
"args": [], | ||
"cwd": "${workspaceFolder}", | ||
"env": { | ||
"RUST_LOG": "trace" | ||
} | ||
}, | ||
{ | ||
"name": "store (tests, debug)", | ||
"type": "lldb", | ||
"request": "launch", | ||
"cargo": { | ||
"args": ["test", "--no-run", "--package=topos-tce-node-store"], | ||
"filter": { | ||
"kind": "test" | ||
} | ||
}, | ||
"args": [], | ||
"cwd": "${workspaceFolder}", | ||
"env": { | ||
"RUST_LOG": "trace" | ||
} | ||
} | ||
] | ||
} |
Oops, something went wrong.