-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
RPC456 adding errors when incorrect parameter is passed on API and ad…
…ding support to run tests in github
- Loading branch information
1 parent
fe95448
commit 3606eac
Showing
6 changed files
with
355 additions
and
46 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,7 @@ | ||
## Overview | ||
|
||
- Summary of changes | ||
|
||
## Testing | ||
|
||
- Testing performed to validate the changes |
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,54 @@ | ||
name: CI | ||
|
||
on: | ||
pull_request: | ||
branches: [main] | ||
|
||
jobs: | ||
|
||
changes: | ||
runs-on: ubuntu-latest | ||
outputs: | ||
fee-estimator: ${{ steps.filter.outputs.fee-estimator}} | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: dorny/[email protected] | ||
id: filter | ||
with: | ||
filters: | | ||
fee-estimator: | ||
- '*/**' | ||
fee-estimator-tests: | ||
needs: changes | ||
if: ${{ needs.changes.outputs.fee-estimator == 'true' }} | ||
runs-on: ubuntu-latest | ||
env: | ||
RUST_TOOLCHAIN: stable | ||
CARGO_INCREMENTAL: 0 | ||
SCCACHE_GHA_ENABLED: 'true' | ||
RUSTC_WRAPPER: 'sccache' | ||
ENV: 'test' | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Cleanup Apt | ||
run: sudo find /var/lib/apt/lists/ -type 'f' -name 'archive*' -delete && sudo apt-get update | ||
- uses: rui314/setup-mold@v1 | ||
with: | ||
mold-version: 1.1.1 | ||
make-default: true | ||
- name: Ensure we use Mold | ||
run: sudo ln -s /usr/local/bin/ld.mold /usr/bin/ld.lld | ||
- name: Install rust + caching | ||
uses: actions-rust-lang/setup-rust-toolchain@v1 | ||
with: | ||
rustflags: '-C link-arg=-fuse-ld=lld' | ||
components: rustfmt, clippy | ||
- name: Set up sccache | ||
uses: mozilla-actions/[email protected] | ||
- name: Clear sccache stats | ||
run: sccache --zero-stats | ||
- name: Run Tests | ||
run: | | ||
cargo test -- --nocapture | ||
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,2 +1,72 @@ | ||
.vscode/ | ||
target/ | ||
# Javascript/Typescript | ||
node_modules/ | ||
dist/ | ||
build/ | ||
coverage/ | ||
vendor/ | ||
|
||
# Node Logs | ||
logs | ||
*.log | ||
npm-debug.log* | ||
AWSCLIV2.pkg | ||
|
||
# Mac | ||
**/.DS_Store | ||
|
||
# IDEs | ||
**/.vscode | ||
**/.idea/ | ||
|
||
# Services | ||
ts-services/parser-lambda/parser/test/data/local/* | ||
ts-services/parser-lambda/parser/test/output/* | ||
ts-services/parser-lambda/parser/playground.ts | ||
|
||
# Secrets | ||
ts-services/dev-api-lambda/crypto-billing/*_secrets.ts | ||
infra/ansible/vars/**/*-secrets.yaml | ||
infra/ansible/vars/**/*-secrets.yml | ||
infra/ansible/photon/vars/*-secrets.yaml | ||
infra/ansible/photon/vars/*-secrets.yml | ||
infra/ansible/rpc/templates/bt-creds*.json | ||
|
||
# Rust | ||
**/target/ | ||
|
||
# CPU profiles | ||
*.cpuprofile | ||
|
||
# Built helm charts | ||
infra/**/*.tgz | ||
|
||
.gradle | ||
.m2 | ||
bin | ||
|
||
# Build output directies | ||
/target | ||
*/target | ||
/build | ||
*/build | ||
|
||
# Local Redis | ||
dump.rdb | ||
|
||
infra/ansible/roles/Datadog.datadog | ||
infra/ansible/photon/roles/datadog.datadog | ||
|
||
|
||
scripts/data | ||
|
||
# Jupyter notebooks | ||
*.ipynb | ||
|
||
# Personal Playground | ||
personal_playground | ||
|
||
|
||
# Used for local deployments of RPC operator | ||
/rpc-operator/ | ||
**/systest/*.json | ||
**/router-benchmarks/*.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
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.