Skip to content

feat: cw cluster connection #396

feat: cw cluster connection

feat: cw cluster connection #396

Workflow file for this run

# Based on https://github.com/actions-rs/example/blob/master/.github/workflows/quickstart.yml
name: Test and Lint CW contracts
on:
pull_request:
branches:
- "**"
paths:
- "contracts/cosmwasm-vm/**"
- "libraries/common/rust/**"
- ".github/workflows/basic-rust.yml"
push:
branches:
- main
jobs:
test:
name: Test Suite
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@v3
- name: Cache Rust dependencies
uses: Swatinem/rust-cache@v2
- name: Run unit tests
run: |
RUST_BACKTRACE=1 cargo unit-test --locked
- name: Compile WASM contract
run: |
RUSTFLAGS='-C link-arg=-s' cargo wasm --locked
lints:
name: Lints
runs-on: ubuntu-latest
defaults:
run:
working-directory: contracts/cosmwasm-vm
steps:
- name: Checkout sources
uses: actions/checkout@v3
- name: Cache Rust dependencies
uses: Swatinem/rust-cache@v2
- name: Run cargo clippy
run: |
cargo clippy