Skip to content

Commit

Permalink
RPC456 adding support to run tests in github
Browse files Browse the repository at this point in the history
  • Loading branch information
dmitriy-helius committed Aug 19, 2024
1 parent fe95448 commit 130f418
Show file tree
Hide file tree
Showing 3 changed files with 119 additions and 2 deletions.
7 changes: 7 additions & 0 deletions .github/pull_request_template.md
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
40 changes: 40 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: CI

on:
pull_request:
branches: [main]

jobs:

tests:
needs: changes
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
74 changes: 72 additions & 2 deletions .gitignore
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

0 comments on commit 130f418

Please sign in to comment.