Skip to content

Remove admin param from fns + Add vc_id to issue fn #201

Remove admin param from fns + Add vc_id to issue fn

Remove admin param from fns + Add vc_id to issue fn #201

Workflow file for this run

name: Smart Contract Build & Test
on:
push:
branches:
- main
- "v*.[0-9]"
pull_request:
types: [opened, synchronize, reopened, ready_for_review]
env:
CARGO_TERM_COLOR: always
jobs:
build_and_test:
name: Rust project - latest
runs-on: ubuntu-latest
strategy:
matrix:
toolchain:
- stable
steps:
- uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0
with:
submodules: recursive
- run: rustup update ${{ matrix.toolchain }} && rustup default ${{ matrix.toolchain }}
- run: rustup target add wasm32-unknown-unknown
- run: cargo install --locked soroban-cli --features opt
- name: Build required did contract wasm
run: |
soroban contract build --package soroban-did-contract
- name: Optimize soroban_did_contract.wasm
run: |
soroban contract optimize --wasm target/wasm32-unknown-unknown/release/soroban_did_contract.wasm
- name: Contract Build
run: |
soroban contract build
- name: Code Verifications
run: |
cargo clippy --all-targets --all-features -- -D warnings
- name: Format code
run: |
cargo fmt --check
- name: Code Tests and coverage
uses: actions-rs/tarpaulin@044a1e5bdace8dd2f727b1af63c1d9a1d3572068 # v0.1.3
with:
version: 0.22.0
# Due to a bug with cargo-tarpaulin crate with multi-line chain calls, the test coverage was reduced.
# https://github.com/xd009642/tarpaulin/issues/949
args: --all-features --fail-under 95 --out Lcov
- name: Upload to Coveralls
uses: coverallsapp/github-action@09b709cf6a16e30b0808ba050c7a6e8a5ef13f8d # master
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
path-to-lcov: "./lcov.info"