Skip to content

fix: lint

fix: lint #1

Workflow file for this run

name: build-test
on:
pull_request:
paths-ignore:
- "*.md"
push:
paths-ignore:
- "*.md"
env:
CARGO_TERM_COLOR: always
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install dependencies
run: |
sudo apt update && sudo apt install -y libssl-dev pkg-config jq && \
cargo install cargo-make && \
wget https://download.dfinity.systems/ic/69e1408347723dbaa7a6cd2faa9b65c42abbe861/openssl-static-binaries/x86_64-linux/pocket-ic.gz && \
gzip -d pocket-ic.gz && \
chmod +x pocket-ic && \
mv pocket-ic ./integration-tests/pocket-ic
- name: Install dfx
run: echo y | sh -ci "$(curl -fsSL https://sdk.dfinity.org/install.sh)"
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
override: true
components: rustfmt, clippy
target: wasm32-unknown-unknown
- name: Unit Tests
run: cargo make test
- name: Deploy local
run: cargo make deploy-local
- name: Integration Tests
run: cargo make integration-tests
- name: Format
run: cargo make check-format
- name: Lint
run: cargo make lint