Skip to content

feat: fix ci

feat: fix ci #34

Workflow file for this run

on: push
name: Rust CI
jobs:
check:
name: check
runs-on: ubuntu-latest
steps:
- name: checkout sources
uses: actions/checkout@v2
- name: install stable toolchain
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true
- name: check for errors
uses: actions-rs/cargo@v1
with:
command: check
args: --locked
env:
RUST_BACKTRACE: 1
test:
name: test
runs-on: ubuntu-latest
steps:
- name: checkout sources
uses: actions/checkout@v2
- name: install stable toolchain
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true
- name: Compile WASM contracts
uses: actions-rs/cargo@v1
with:
command: build
args: --release --lib --target wasm32-unknown-unknown --locked --workspace --exclude testenv
env:
RUSTFLAGS: "-C link-arg=-s"
- name: run tests
uses: actions-rs/cargo@v1
with:
command: unit-test
args: --locked --tests
env:
RUST_BACKTRACE: 1
clippy:
name: clippy
runs-on: ubuntu-latest
steps:
- name: checkout sources
uses: actions/checkout@v2
- name: install stable toolchain
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
components: clippy
override: true
- name: run linter
uses: actions-rs/cargo@v1
with:
command: clippy
args: -- -D warnings