Skip to content

sns: read SnS keys from tenants table #162

sns: read SnS keys from tenants table

sns: read SnS keys from tenants table #162

Workflow file for this run

name: Rust tests
on:
pull_request:
paths:
- .github/workflows/cargo-tests.yml
- fhevm-engine/**
- proto/**
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref }}
cancel-in-progress: true
jobs:
cargo-tests:
runs-on: large_ubuntu_16
steps:
- name: Checkout code
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
with:
lfs: true
- name: Checkout LFS objects
run: git lfs checkout
- name: Setup Rust
uses: dtolnay/rust-toolchain@a54c7afa936fefeb4456b2dd8068152669aa8203
with:
toolchain: stable
- name: Install cargo dependencies
run: |
sudo apt-get install -y protobuf-compiler && \
cargo install sqlx-cli
- name: Install foundry
uses: foundry-rs/foundry-toolchain@de808b1eea699e761c404bda44ba8f21aba30b2c
- name: Cache cargo
uses: actions/cache@1bd1e32a3bdc45362d1e726936510720a7c30a57 # v4.2.0
with:
path: |
~/.cargo/registry
~/.cargo/git
target
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
restore-keys: ${{ runner.os }}-cargo-
- name: Init database
run: make init_db
working-directory: fhevm-engine/coprocessor
- name: Run tests
run: |
DATABASE_URL=postgresql://postgres:postgres@localhost:5432/coprocessor cargo test --release -- --test-threads=1
working-directory: fhevm-engine
permissions:
contents: read
checks: write