Skip to content

Feat : alerts module #38

Feat : alerts module

Feat : alerts module #38

Workflow file for this run

name: Rust Test & Coverage
on:
workflow_dispatch:
workflow_call:
jobs:
coverage:
runs-on: ubuntu-latest
services:
localstack:
image: localstack/localstack
env:
SERVICES: s3, sqs, sns
DEFAULT_REGION: us-east-1
AWS_ACCESS_KEY_ID: "AWS_ACCESS_KEY_ID"
AWS_SECRET_ACCESS_KEY: "AWS_SECRET_ACCESS_KEY"
ports:
- 4566:4566
mongodb:
image: mongo:latest
ports:
- 27017:27017
steps:
- uses: actions/checkout@v3
# selecting a toolchain either by action or manual `rustup` calls should happen
# before the plugin, as the cache uses the current rustc version as its cache key
- run: rustup show
- name: Install Rust toolchain
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true
- name: Rust Cache
uses: Swatinem/rust-cache@v2
- name: Install cargo-llvm-cov & nextest
uses: taiki-e/install-action@cargo-llvm-cov
- name: Install nextest
uses: taiki-e/install-action@nextest
- name: Getting neccesary files for testing
run: |
wget -P ./crates/prover-services/sharp-service/tests/artifacts https://madara-orchestrator-sharp-pie.s3.amazonaws.com/238996-SN.zip
- name: Clean workspace
run: |
cargo clean --doc
- name: Run tests llvm-cov
run: cargo llvm-cov nextest --release --lcov --output-path lcov.info --test-threads=1
- name: Coveralls
uses: coverallsapp/github-action@v2
with:
files: lcov.info
debug: true