Skip to content

Update

Update #280

Workflow file for this run

name: check
on:
pull_request:
branches:
- '**'
push:
paths-ignore:
- '*.md'
branches:
- main
concurrency:
group: ${{ github.ref }}-${{ github.workflow }}
cancel-in-progress: true
jobs:
check-format-and-lint:
name: Check format and lint
runs-on: ubuntu-latest
env:
CARGO_INCREMENTAL: 0
steps:
- name: Checkout source code
uses: actions/checkout@v2
- name: Install rust toolchain
uses: actions-rs/toolchain@v1
- name: Install clippy and fmt
run: rustup component add clippy rustfmt
- name: Install WASM target
run: rustup target add wasm32-unknown-unknown
- name: Run format checks
uses: actions-rs/cargo@v1
with:
command: fmt
args: -- --check
- name: Run linter
uses: actions-rs/cargo@v1
with:
command: clippy
args: -- --no-deps -D warnings